nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 58faff50aebccb8881a67c965fba5b3a9e55288c
parent 87a7c2e42da9a0224160253b9220618d21b31284
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 24 Mar 2017 21:37:06 +0100

tweaks: shorten a bit of logic

Diffstat:
Msrc/winio.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 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);