From 47996e708ad2ab7e6a18633576c95e93d08e816a Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 1 Aug 2019 08:02:33 +0100 Subject: add crop-to-region in visual mode --- screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'screen.c') 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 ++; -- cgit v1.2.3