diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-11-10 19:53:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-11-10 19:53:33 +0000 |
commit | acd008c6f6a9f48e87f669a5c11b2c614b976682 (patch) | |
tree | f5c9a3627e4d8a8a8afa1fddb0da7b587a8f999e /usr.bin/tmux | |
parent | f077c78217877117459f5013e6f6d5406ddc34dc (diff) |
Revert r1.17 as it breaks inserting in some cases.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/grid-view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/grid-view.c b/usr.bin/tmux/grid-view.c index 3318fb28fec..cf1a88530ba 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.17 2014/11/08 12:58:31 nicm Exp $ */ +/* $OpenBSD: grid-view.c,v 1.18 2014/11/10 19:53:32 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -184,7 +184,7 @@ grid_view_insert_cells(struct grid *gd, u_int px, u_int py, u_int nx) px = grid_view_x(gd, px); py = grid_view_y(gd, py); - sx = grid_view_x(gd, gd->linedata[py].cellsize); + sx = grid_view_x(gd, gd->sx); if (px == sx - 1) grid_clear(gd, px, py, 1, 1); @@ -201,7 +201,7 @@ grid_view_delete_cells(struct grid *gd, u_int px, u_int py, u_int nx) px = grid_view_x(gd, px); py = grid_view_y(gd, py); - sx = grid_view_x(gd, gd->linedata[py].cellsize); + sx = grid_view_x(gd, gd->sx); grid_move_cells(gd, px, px + nx, py, sx - px - nx); grid_clear(gd, sx - nx, py, px + nx - (sx - nx), 1); |