Commit a951f21c authored by Chris Allegretta's avatar Chris Allegretta
Browse files

- nano.c: do_mouse() - Change k based on currslen to allow the new widths in bottombars()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@793 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 9 additions and 1 deletion
+9 -1
...@@ -38,6 +38,8 @@ CVS code - ...@@ -38,6 +38,8 @@ CVS code -
lines aren't lined up since the menu width changed though, lines aren't lined up since the menu width changed though,
this breakage depends on whether the new widths will be kept this breakage depends on whether the new widths will be kept
or not (FEEDBACK!!) or not (FEEDBACK!!)
- Change k based on currslen to allow the new widths in
bottombars().
do_wrap() do_wrap()
- Fixes for Pico incompatibility in cases 2b and 2c. - Fixes for Pico incompatibility in cases 2b and 2c.
(David Lawrence Ramsey). (David Lawrence Ramsey).
......
...@@ -1771,7 +1771,13 @@ void do_mouse(void) ...@@ -1771,7 +1771,13 @@ void do_mouse(void)
update_cursor(); update_cursor();
edit_refresh(); edit_refresh();
} else if (wenclose(bottomwin, mevent.y, mevent.x) && !ISSET(NO_HELP)) { } 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 */ /* Determine what shortcut list was clicked */
mevent.y -= (editwinrows + 3); mevent.y -= (editwinrows + 3);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment