From 58faff50aebccb8881a67c965fba5b3a9e55288c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Fri, 24 Mar 2017 21:37:06 +0100 Subject: [PATCH] tweaks: shorten a bit of logic --- src/winio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/winio.c b/src/winio.c index 1abed1da..ae271e54 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2889,11 +2889,10 @@ void edit_scroll(scroll_dir direction, int nrows) /* Don't bother scrolling zero rows, nor more than the window can hold. */ if (nrows == 0) return; - if (nrows >= editwinrows) + if (nrows >= editwinrows) { refresh_needed = TRUE; - - if (refresh_needed == TRUE) return; + } /* Scroll the text of the edit window a number of rows up or down. */ scrollok(edit, TRUE); -- GitLab