make sure we don't treat a click on an empty area of the shortcut list
as a statusbar prompt click git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3055 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
b5776ac698
commit
52320f344d
|
@ -1869,8 +1869,11 @@ bool do_statusbar_mouse(void)
|
||||||
if (wenclose(bottomwin, mouse_y, mouse_x)) {
|
if (wenclose(bottomwin, mouse_y, mouse_x)) {
|
||||||
size_t start_col = strlenpt(prompt) + 1;
|
size_t start_col = strlenpt(prompt) + 1;
|
||||||
|
|
||||||
|
/* Subtract out the sizes of topwin and edit. */
|
||||||
|
mouse_y -= (2 - no_more_space()) + editwinrows;
|
||||||
|
|
||||||
/* Move to where the click occurred. */
|
/* Move to where the click occurred. */
|
||||||
if (mouse_x > start_col) {
|
if (mouse_x > start_col && mouse_y == 0) {
|
||||||
size_t xpt = strnlenpt(answer, statusbar_x);
|
size_t xpt = strnlenpt(answer, statusbar_x);
|
||||||
|
|
||||||
statusbar_x = actual_x(answer,
|
statusbar_x = actual_x(answer,
|
||||||
|
|
Loading…
Reference in New Issue