+2014-06-13 Benno Schulenberg <bensberg@justemail.net>
+ * src/nano.c (do_input): Repositioning the cursor with the mouse
+ (result == 0) should break a series of ^Ks.
+
2014-06-11 Benno Schulenberg <bensberg@justemail.net>
* src/winio.c (get_mouseinput): Produce the correct return value for
when a mouse event reinserted something into the keyboard buffer.
#ifndef DISABLE_MOUSE
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)
+ /* We received a mouse click. */
+ int result = do_mouse();
+
+ if (result == 1)
+ /* The click was on a shortcut -- read in the character
+ * that it was converted into. */
input = get_kbinput(edit, meta_key, func_key);
- else
+ else if (result != 0)
+ /* The click was invalid -- get out. */
return ERR;
}
#endif