From 52681b138fa08702445baea03b3816570d6be73b Mon Sep 17 00:00:00 2001 From: anon Date: Sun, 3 Sep 2023 00:46:49 +0200 Subject: [PATCH] chage_input('*') no longer over indexes --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index e62e356..3b8d941 100644 --- a/src/input.c +++ b/src/input.c @@ -345,7 +345,7 @@ int change_input(const int c) { switch(c) { case '*': /* invert page */ - for(int i = 0; topref + i < nextline; i++) { + for(int i = 0; i < nextline-1; i++) { change[topref + i] = !change[topref + i]; } window_change |= CH_RESULT;