summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/grid-view.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-07-04 09:44:07 +0000
committernicm <nicm@openbsd.org>2018-07-04 09:44:07 +0000
commit7621e88f98edd17e57504f445f15691e4f7ef997 (patch)
treed4d8795ba09acd60def48e74ee90a4b88f39100e /usr.bin/tmux/grid-view.c
parentPrint the amount of bytes written, as intended, instead of -1 when (diff)
downloadwireguard-openbsd-7621e88f98edd17e57504f445f15691e4f7ef997.tar.xz
wireguard-openbsd-7621e88f98edd17e57504f445f15691e4f7ef997.zip
Add accessors for grid linedata member, for some future work. From Dan
Aloni.
Diffstat (limited to 'usr.bin/tmux/grid-view.c')
-rw-r--r--usr.bin/tmux/grid-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid-view.c b/usr.bin/tmux/grid-view.c
index 5910aaaf229..e28b6836aa6 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.30 2017/08/30 18:13:47 nicm Exp $ */
+/* $OpenBSD: grid-view.c,v 1.31 2018/07/04 09:44:07 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -64,7 +64,7 @@ grid_view_clear_history(struct grid *gd, u_int bg)
/* Find the last used line. */
last = 0;
for (yy = 0; yy < gd->sy; yy++) {
- gl = &gd->linedata[grid_view_y(gd, yy)];
+ gl = grid_get_line(gd, grid_view_y(gd, yy));
if (gl->cellused != 0)
last = yy + 1;
}