mouse event (a touch of the touchpad, for example) but get out.
Continuing would result in the cutbuffer being cleared upon the
next cut. These two changes together fix Savannah bug #42326.
+ * src/nano.c (do_input): Always accept mouse events, also when
+ just looking for Unjustify. This fixes Savannah bug #42322.
2014-06-10 Benno Schulenberg <bensberg@justemail.net>
* src/browser.c, src/files.c, src/nano.c src/prompt.c, src/winio.c:
input = get_kbinput(edit, meta_key, func_key);
#ifndef DISABLE_MOUSE
- if (allow_funcs) {
- /* If we got a mouse click and it was on a shortcut, read in the
- * shortcut character. */
- if (*func_key && input == KEY_MOUSE) {
- if (do_mouse() == 1)
- input = get_kbinput(edit, meta_key, func_key);
- else {
- *meta_key = FALSE;
- *func_key = FALSE;
- return ERR;
- }
- }
+ if (*func_key && input == KEY_MOUSE) {
+ /* We received a mouse click -- if it was on a shortcut, read in
+ * the produced shortcut character, otherwise get out. */
+ if (do_mouse() == 1)
+ input = get_kbinput(edit, meta_key, func_key);
+ else
+ return ERR;
}
#endif