From: David Lawrence Ramsey Date: Thu, 1 Jun 2006 01:15:06 +0000 (+0000) Subject: redundancy fix X-Git-Tag: v1.3.12~83 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1f5cf0d1117e45e963d9ece4f04cf50c99ddec84;p=nano.git redundancy fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3597 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/nano.c b/src/nano.c index 0a744948..6a0aeb31 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1303,8 +1303,8 @@ int do_input(bool *meta_key, bool *func_key, bool *s_or_t, bool if (is_ascii_cntrl_char(input) || *meta_key == TRUE || *func_key == TRUE) { statusbar(_("Unknown Command")); - if (*meta_key == TRUE) - *meta_key = FALSE; + *meta_key = FALSE; + *func_key = FALSE; input = ERR; } } diff --git a/src/prompt.c b/src/prompt.c index 07d99031..e9540c7c 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -105,8 +105,8 @@ int do_statusbar_input(bool *meta_key, bool *func_key, bool *s_or_t, if (*s_or_t == FALSE) { if (is_ascii_cntrl_char(input) || *meta_key == TRUE || *func_key == TRUE) { - if (*meta_key == TRUE) - *meta_key = FALSE; + *meta_key = FALSE; + *func_key = FALSE; input = ERR; } }