From 1f5cf0d1117e45e963d9ece4f04cf50c99ddec84 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 1 Jun 2006 01:15:06 +0000 Subject: [PATCH] redundancy fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3597 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/nano.c | 4 ++-- src/prompt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.39.5