diff --git a/ChangeLog b/ChangeLog index 53b430cc..120f4330 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2014-06-11 Benno Schulenberg + * src/winio.c (get_mouseinput): Produce the correct return value for + when a mouse event reinserted something into the keyboard buffer. + * src/nano.c (do_input): Do not continue when there is a spurious + 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. + 2014-06-10 Benno Schulenberg * src/browser.c, src/files.c, src/nano.c src/prompt.c, src/winio.c: A few minimalistic whitespace adjustments. diff --git a/src/nano.c b/src/nano.c index 2c2a8547..58aaf45f 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1595,7 +1595,7 @@ int do_input(bool *meta_key, bool *func_key, bool allow_funcs) else { *meta_key = FALSE; *func_key = FALSE; - input = ERR; + return ERR; } } } diff --git a/src/winio.c b/src/winio.c index 934fec9e..371080ef 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1718,6 +1718,7 @@ int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts) const sc *s = first_sc_for(currmenu, f->scfunc); unget_kbinput(s->seq, s->type == META, FALSE); } + return 1; } else /* Handle releases/clicks of the first mouse button that * aren't on the current shortcut list elsewhere. */