Setting not just the meta_key but also the func_key boolean when a key is

reinserted into the keyboard buffer.  This fixes Savannah bug #42092.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4959 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Benno Schulenberg 2014-06-11 19:24:38 +00:00
parent 8cc8b08dfc
commit 62bb6e85fc
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@
* src/nano.c (do_input): Always accept mouse events, also when
just looking for Unjustify. This fixes Savannah bug #42322.
* src/nano.c (do_input): Remove a superfluous switch statement.
* src/winio.c (get_mouseinput): Set the type of a reinserted key,
also when it is a function key. This fixes Savannah bug #42092.
2014-06-10 Benno Schulenberg <bensberg@justemail.net>
* src/browser.c, src/files.c, src/nano.c src/prompt.c, src/winio.c:

View File

@ -1716,7 +1716,7 @@ int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts)
/* And put the corresponding key into the keyboard buffer. */
if (f != NULL) {
const sc *s = first_sc_for(currmenu, f->scfunc);
unget_kbinput(s->seq, s->type == META, FALSE);
unget_kbinput(s->seq, s->type == META, s->type == FKEY);
}
return 1;
} else