summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-01 11:26:12 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-01 11:26:12 +0100
commit08485aacd8d561f2650175b7a16211262396b2ce (patch)
treedda64aa4e35020ee230d53bcf1aa0e66c8fdd1c6 /screen.c
parentf660595c236a21555d3558dd51afae4a67d651a3 (diff)
add undo in erase mode
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index d0310eb..e347ea3 100644
--- a/screen.c
+++ b/screen.c
@@ -445,7 +445,7 @@ void crop_to_rect(int x1, int y1, int x2, int y2){
int i;
for (i=0; i<= y2-y1; i ++){
- ensure_line_length(&(screen.l[i]), screen.l[i+y1].lst);
+ ensure_line_length(&(screen.l[i]), screen.l[i+y1].lst+1);
sprintf(screen.l[i].s, "%s", screen.l[i+y1].s + x1);
screen.l[i].lst = screen.l[i+y1].lst - x1;
}