]> git.wh0rd.org Git - nano.git/commitdiff
Make the new bottombars not suck quite so badly
authorChris Allegretta <chrisa@asty.org>
Sun, 26 Aug 2001 23:16:44 +0000 (23:16 +0000)
committerChris Allegretta <chrisa@asty.org>
Sun, 26 Aug 2001 23:16:44 +0000 (23:16 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@751 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

winio.c

diff --git a/winio.c b/winio.c
index dae7e9c64f61f3b8a05cc1fb824abe591900f1de..17aeceda4279610df1b0b2f51064988545b20c49 100644 (file)
--- a/winio.c
+++ b/winio.c
@@ -603,7 +603,7 @@ void bottombars(shortcut s[], int slen)
     if (slen < 2)
        k = COLS / 6 - 13;
     else
-       k = COLS / (slen / 2) - 13;
+       k = COLS / ((slen + (slen %2)) / 2) - 13;
 
 
     clear_bottomwin();