From c948c6b69764729859dcd091934f42abad2f73e6 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 16 Feb 2017 12:43:08 +0000 Subject: Handle insert cells when cursor at edge of screen correctly, and do a full flush before insert. --- grid-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grid-view.c') diff --git a/grid-view.c b/grid-view.c index b84ac64e..fe096252 100644 --- a/grid-view.c +++ b/grid-view.c @@ -194,7 +194,7 @@ grid_view_insert_cells(struct grid *gd, u_int px, u_int py, u_int nx, u_int bg) sx = grid_view_x(gd, gd->sx); - if (px == sx - 1) + if (px >= sx - 1) grid_clear(gd, px, py, 1, 1, bg); else grid_move_cells(gd, px + nx, px, py, sx - px - nx, bg); -- cgit