diff --git a/ChangeLog b/ChangeLog index 3c2056d26a8e9d2aaacfe09b1c63041a23e52c92..52ad9d4cc276bab5668d99413261ffe037c2df12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -38,6 +38,8 @@ CVS code - lines aren't lined up since the menu width changed though, this breakage depends on whether the new widths will be kept or not (FEEDBACK!!) + - Change k based on currslen to allow the new widths in + bottombars(). do_wrap() - Fixes for Pico incompatibility in cases 2b and 2c. (David Lawrence Ramsey). diff --git a/nano.c b/nano.c index 6fae56e28cd4aa45eeba4ed5899440e1951cca5e..fa6f9b8aa50bc144c8af8979fb89c6dec4019648 100644 --- a/nano.c +++ b/nano.c @@ -1771,7 +1771,13 @@ void do_mouse(void) update_cursor(); edit_refresh(); } else if (wenclose(bottomwin, mevent.y, mevent.x) && !ISSET(NO_HELP)) { - int k = COLS / 6, val = 0; + + int k, val = 0; + + if (currslen < 2) + k = COLS / 6; + else + k = COLS / ((currslen + (currslen %2)) / 2); /* Determine what shortcut list was clicked */ mevent.y -= (editwinrows + 3);