From 2a73131f0e70e329940e4d62047e5e1d370ea877 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sun, 24 Jul 2005 17:06:56 +0000 Subject: [PATCH] cosmetic fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2918 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/winio.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/winio.c b/src/winio.c index a0d8318a..fe690a89 100644 --- 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;