diff options
author | 2015-01-06 21:14:42 +0000 | |
---|---|---|
committer | 2015-01-06 21:14:42 +0000 | |
commit | cee98202f900e7906ea4c4befe528899306d9b23 (patch) | |
tree | ef99b74dd3c93fa3cfc72cf2b53cebf24c6bef54 /usr.bin/tmux/grid-view.c | |
parent | add initial HP-UX getentropy/arc4random support. (diff) | |
download | wireguard-openbsd-cee98202f900e7906ea4c4befe528899306d9b23.tar.xz wireguard-openbsd-cee98202f900e7906ea4c4befe528899306d9b23.zip |
Revert to r1.16 since this is still clearly broken and I can't see how
right now.
Diffstat (limited to 'usr.bin/tmux/grid-view.c')
-rw-r--r-- | usr.bin/tmux/grid-view.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.bin/tmux/grid-view.c b/usr.bin/tmux/grid-view.c index 9068a12a338..c0deb6b07bb 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.20 2014/12/01 22:22:14 nicm Exp $ */ +/* $OpenBSD: grid-view.c,v 1.21 2015/01/06 21:14:42 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -184,10 +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); - if (gd->linedata[py].cellsize + nx < gd->sx) - sx = grid_view_x(gd, gd->linedata[py].cellsize + nx); - else - sx = grid_view_x(gd, gd->sx); + sx = grid_view_x(gd, gd->sx); if (px == sx - 1) grid_clear(gd, px, py, 1, 1); @@ -204,9 +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); - if (sx < px + nx) - sx = px + nx; + 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); |