aboutsummaryrefslogtreecommitdiff
path: root/grid-view.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-07-04 13:02:25 +0100
committerThomas Adam <thomas@xteddy.org>2018-07-04 13:02:25 +0100
commit850c26dd46a0b6983e32112fc1e37b8aa5a5268b (patch)
treece9250e828bfc4ab96e3faae08ea9695006a5721 /grid-view.c
parentdb07f338863eea6a8eda2b0efafb7e2b2500e14e (diff)
parent2fae6a57618e1cef47b65e73504d7d5570ca6a8e (diff)
downloadrtmux-850c26dd46a0b6983e32112fc1e37b8aa5a5268b.tar.gz
rtmux-850c26dd46a0b6983e32112fc1e37b8aa5a5268b.tar.bz2
rtmux-850c26dd46a0b6983e32112fc1e37b8aa5a5268b.zip
Merge branch 'obsd-master'
Diffstat (limited to 'grid-view.c')
-rw-r--r--grid-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grid-view.c b/grid-view.c
index 1bb77317..a4bd5ba2 100644
--- a/grid-view.c
+++ b/grid-view.c
@@ -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;
}