tweak get_mouseinput() to work properly when -O/--morespace is used
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2304 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
96de1b0650
Коммит
798e67e0a1
@ -124,8 +124,8 @@ CVS code -
|
|||||||
be treated as part of the edit window. New functions
|
be treated as part of the edit window. New functions
|
||||||
no_more_space() and blank_topbar(); changes to global_init(),
|
no_more_space() and blank_topbar(); changes to global_init(),
|
||||||
window_init(), handle_sigwinch(), do_toggle(), do_mouse(),
|
window_init(), handle_sigwinch(), do_toggle(), do_mouse(),
|
||||||
etc. (DLR; suggested by Mike Frysinger, Rocco, and Robert
|
get_mouseinput(), etc. (DLR; suggested by Mike Frysinger,
|
||||||
Schultz)
|
Rocco, and Robert Schultz)
|
||||||
- Add support for moving to the next or previous word at the
|
- Add support for moving to the next or previous word at the
|
||||||
statusbar prompt. New functions do_statusbar_next_word() and
|
statusbar prompt. New functions do_statusbar_next_word() and
|
||||||
do_statusbar_prev_word(); changes to do_statusbar_input().
|
do_statusbar_prev_word(); changes to do_statusbar_input().
|
||||||
|
@ -1512,9 +1512,9 @@ bool get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts)
|
|||||||
else
|
else
|
||||||
i = COLS / ((currslen / 2) + (currslen % 2));
|
i = COLS / ((currslen / 2) + (currslen % 2));
|
||||||
|
|
||||||
/* Calculate the y-coordinates relative to the beginning of
|
/* Calculate the y-coordinate relative to the beginning of
|
||||||
* bottomwin, i.e, the bottom three lines of the screen. */
|
* bottomwin. */
|
||||||
j = *mouse_y - (editwinrows + 3);
|
j = *mouse_y - ((2 - no_more_space()) + 1) - editwinrows;
|
||||||
|
|
||||||
/* If we're on the statusbar, beyond the end of the shortcut
|
/* 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
|
* list, or beyond the end of a shortcut on the right side of
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user