summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/grid-view.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-06-02 20:51:46 +0000
committernicm <nicm@openbsd.org>2020-06-02 20:51:46 +0000
commit71a06389cdece4bcda2807a1b6f9f33b67c1b38a (patch)
tree9d31d6e8a0e68ef702e2dd0c2144a90d770783af /usr.bin/tmux/grid-view.c
parentAllow UTF-8 characters of width 0 to be stored, it is useful to be able (diff)
downloadwireguard-openbsd-71a06389cdece4bcda2807a1b6f9f33b67c1b38a.tar.xz
wireguard-openbsd-71a06389cdece4bcda2807a1b6f9f33b67c1b38a.zip
Move the code to set up a padding cell into grid.c.
Diffstat (limited to 'usr.bin/tmux/grid-view.c')
-rw-r--r--usr.bin/tmux/grid-view.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/tmux/grid-view.c b/usr.bin/tmux/grid-view.c
index b14c2480312..23beae8c61b 100644
--- a/usr.bin/tmux/grid-view.c
+++ b/usr.bin/tmux/grid-view.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grid-view.c,v 1.33 2019/08/16 08:52:25 nicm Exp $ */
+/* $OpenBSD: grid-view.c,v 1.34 2020/06/02 20:51:46 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -45,6 +45,13 @@ grid_view_set_cell(struct grid *gd, u_int px, u_int py,
grid_set_cell(gd, grid_view_x(gd, px), grid_view_y(gd, py), gc);
}
+/* Set padding. */
+void
+grid_view_set_padding(struct grid *gd, u_int px, u_int py)
+{
+ grid_set_padding(gd, grid_view_x(gd, px), grid_view_y(gd, py));
+}
+
/* Set cells. */
void
grid_view_set_cells(struct grid *gd, u_int px, u_int py,