diff -ur nano-cvs/src/winio.c nano-new/src/winio.c --- nano-cvs/src/winio.c 2006-03-30 03:18:29.000000000 +0200 +++ nano-new/src/winio.c 2006-04-12 12:24:30.000000000 +0200 @@ -2205,7 +2205,7 @@ * portion of the window. */ void bottombars(const shortcut *s) { - size_t i, colwidth, slen; + size_t i, colwidth, extra, slen; if (ISSET(NO_HELP)) return; @@ -2225,6 +2225,8 @@ /* There will be this many characters per column. We need at least * 3 to display anything properly. */ colwidth = COLS / ((slen / 2) + (slen % 2)); + /* The slack at the end -- is used to run on into. */ + extra = COLS % colwidth; blank_bottombars(); @@ -2247,7 +2249,7 @@ keystr = foo; wmove(bottomwin, 1 + i % 2, (i / 2) * colwidth); - onekey(keystr, s->desc, colwidth); + onekey(keystr, s->desc, colwidth + extra); } wnoutrefresh(bottomwin);