commit 9cd30d4917bfe3d5a99a08b36e2b08e90d0b4f45
parent f33d8cae30167d36f4e758755f35e9cb98cd18f6
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 15 Jul 2016 21:59:38 +0200
tweaks: don't bother setting meta_key to false when a key is invalid
That is a task for the key-getting routine.
Diffstat:
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1601,7 +1601,6 @@ int do_input(bool allow_funcs)
if (!have_shortcut) {
if (is_ascii_cntrl_char(input) || meta_key || !is_byte(input)) {
unbound_key(input);
- meta_key = FALSE;
input = ERR;
}
}
diff --git a/src/prompt.c b/src/prompt.c
@@ -69,10 +69,8 @@ int do_statusbar_input(bool *ran_func, bool *finished,
if (input == KEY_MOUSE) {
if (do_statusbar_mouse() == 1)
input = get_kbinput(bottomwin);
- else {
- meta_key = FALSE;
+ else
input = ERR;
- }
}
#endif
@@ -88,7 +86,6 @@ int do_statusbar_input(bool *ran_func, bool *finished,
if (!have_shortcut) {
if (is_ascii_cntrl_char(input) || meta_key || !is_byte(input)) {
beep();
- meta_key = FALSE;
input = ERR;
}
}