summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-01 08:02:33 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-01 08:02:33 +0100
commit47996e708ad2ab7e6a18633576c95e93d08e816a (patch)
tree466d6eebf592833f8f4e301ac60d1cff6769c2bf /screen.c
parent6d34f883ba3ce2474df90432cc4aa387e9093321 (diff)
add crop-to-region in visual 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 9a0ccb3..d0310eb 100644
--- a/screen.c
+++ b/screen.c
@@ -449,7 +449,7 @@ void crop_to_rect(int x1, int y1, int x2, int y2){
sprintf(screen.l[i].s, "%s", screen.l[i+y1].s + x1);
screen.l[i].lst = screen.l[i+y1].lst - x1;
}
- while (i<=y2){
+ while (i< HEIGHT){
screen.l[i].lst = -1;
screen.l[i].s[0]= '\0';
i ++;