diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-08-01 11:26:12 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-08-01 11:26:12 +0100 |
commit | 08485aacd8d561f2650175b7a16211262396b2ce (patch) | |
tree | dda64aa4e35020ee230d53bcf1aa0e66c8fdd1c6 /screen.c | |
parent | f660595c236a21555d3558dd51afae4a67d651a3 (diff) |
add undo in erase mode
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |