summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/grid.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-03-30 07:05:27 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-03-30 07:05:27 +0000
commit91ab3ec548d4cf3ea2cb9e5ef5368ed0b805e82a (patch)
tree4a3c70954e456e51e53c895b229f425f673fef81 /usr.bin/tmux/grid.c
parent47bb12a29de658379d8d82b45d951b5028439d47 (diff)
Capture up to used size not available size for each line.
Diffstat (limited to 'usr.bin/tmux/grid.c')
-rw-r--r--usr.bin/tmux/grid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c
index fe81172a662..9935067ee3c 100644
--- a/usr.bin/tmux/grid.c
+++ b/usr.bin/tmux/grid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grid.c,v 1.122 2021/12/21 14:57:28 nicm Exp $ */
+/* $OpenBSD: grid.c,v 1.123 2022/03/30 07:05:26 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1003,7 +1003,7 @@ grid_string_cells(struct grid *gd, u_int px, u_int py, u_int nx,
gl = grid_peek_line(gd, py);
for (xx = px; xx < px + nx; xx++) {
- if (gl == NULL || xx >= gl->cellsize)
+ if (gl == NULL || xx >= gl->cellused)
break;
grid_get_cell(gd, xx, py, &gc);
if (gc.flags & GRID_FLAG_PADDING)