nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f7260533255d2ed33416c2f1c874a0212999e48b
parent a0aff67a4d3c7e729d5ef0b52a65bd05fc99e171
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 28 Oct 2005 17:12:58 +0000

cosmetic fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3060 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/winio.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -1561,8 +1561,10 @@ bool get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts) i = COLS / ((currslen / 2) + (currslen % 2)); /* Calculate the y-coordinate relative to the beginning of - * the shortcut list in bottomwin. */ - j = *mouse_y - ((2 - no_more_space()) + 1) - editwinrows; + * the shortcut list in bottomwin, i.e, with the sizes of + * topwin, edit, and the first line of bottomwin subtracted + * out. */ + j = *mouse_y - (2 - no_more_space()) - editwinrows - 1; /* If we're on the statusbar, beyond the end of the shortcut * list, or beyond the end of a shortcut on the right side of