diff options
author | 2020-04-15 12:59:20 +0000 | |
---|---|---|
committer | 2020-04-15 12:59:20 +0000 | |
commit | 75343b37c16fb8d8dc02f09428c268f8add74966 (patch) | |
tree | 22d07a7b041cb34d30690a559aeb3c15eb4c2a44 /usr.bin/tmux/grid.c | |
parent | Indicate that ACPI is supported as well. (diff) | |
download | wireguard-openbsd-75343b37c16fb8d8dc02f09428c268f8add74966.tar.xz wireguard-openbsd-75343b37c16fb8d8dc02f09428c268f8add74966.zip |
Use grid_empty_line rather than memset when adding new lines on resize.
Also remove some old test code.
Diffstat (limited to 'usr.bin/tmux/grid.c')
-rw-r--r-- | usr.bin/tmux/grid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c index aad957bdfd0..7ffd383a7df 100644 --- a/usr.bin/tmux/grid.c +++ b/usr.bin/tmux/grid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.105 2020/04/09 13:53:50 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.106 2020/04/15 12:59:20 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -48,8 +48,6 @@ static const struct grid_cell_entry grid_cleared_entry = { GRID_FLAG_CLEARED, { .data = { 0, 8, 8, ' ' } } }; -static void grid_empty_line(struct grid *, u_int, u_int); - /* Store cell in entry. */ static void grid_store_cell(struct grid_cell_entry *gce, const struct grid_cell *gc, @@ -454,7 +452,7 @@ grid_expand_line(struct grid *gd, u_int py, u_int sx, u_int bg) } /* Empty a line and set background colour if needed. */ -static void +void grid_empty_line(struct grid *gd, u_int py, u_int bg) { memset(&gd->linedata[py], 0, sizeof gd->linedata[py]); |