diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-08-01 07:47:43 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-08-01 07:47:43 +0100 |
commit | 6d34f883ba3ce2474df90432cc4aa387e9093321 (patch) | |
tree | 22ce5d610888039ef8363796b14d940617285fb3 /screen.c | |
parent | d6b3606e315c4bf5692bc3b6daea3d3022ef14c5 (diff) |
add undo support for crop-to-visible
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); } |