From 6d34f883ba3ce2474df90432cc4aa387e9093321 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 1 Aug 2019 07:47:43 +0100 Subject: add undo support for crop-to-visible --- screen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'screen.c') diff --git a/screen.c b/screen.c index b769641..9a0ccb3 100644 --- a/screen.c +++ b/screen.c @@ -462,7 +462,9 @@ void crop_to_nonblank(){ #ifdef DEBUG fprintf(stderr, "crop rectangle: (%d, %d)-(%d, %d)\n", x1, y1, x2, y2); #endif + copy_lines_to_ring(0, y2, PRV_STATE); crop_to_rect(x1, y1, x2, y2); + copy_lines_to_ring(0, y2, NEW_STATE); modified=1; redraw(); } -- cgit v1.2.3