nano

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

commit 2a73131f0e70e329940e4d62047e5e1d370ea877
parent ce78cdb7225465e552f02cc6205b287c491b45a9
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sun, 24 Jul 2005 17:06:56 +0000

cosmetic fix


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2918 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/winio.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -3546,10 +3546,7 @@ void edit_scroll(updown direction, int nlines) * If the scrolled region contains more than one line, and the lines * before and after the scrolled region are visible in the edit * window, we need to draw them too. */ - if (nlines == 1) - nlines++; - else - nlines += 2; + nlines += (nlines == 1) ? 1 : 2; if (nlines > editwinrows) nlines = editwinrows;