From: David Lawrence Ramsey Date: Tue, 3 May 2005 21:35:58 +0000 (+0000) Subject: remove redundant code X-Git-Tag: v1.3.8~300 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=75f4b7cb84e14cac49b467680e304e22f4639f54;p=nano.git remove redundant code git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2500 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/winio.c b/src/winio.c index 8aa4939a..c72c4818 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2515,7 +2515,6 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *def, answer_len = strlen(answer); statusbar_x = answer_len; } - finished = FALSE; } #ifndef DISABLE_TABCOMP else @@ -2526,7 +2525,6 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *def, answer = input_tab(answer, &statusbar_x, &tabbed, list); answer_len = strlen(answer); - finished = FALSE; } #endif break; @@ -2566,6 +2564,12 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *def, answer_len = strlen(history); } statusbar_x = answer_len; + + /* This key has a shortcut list entry when it's used + * to move to an older search, which means that + * finished has been set to TRUE. Set it back to + * FALSE here, so that we aren't kicked out of the + * statusbar prompt. */ finished = FALSE; } #endif @@ -2607,7 +2611,6 @@ int nanogetstr(bool allow_tabs, const char *buf, const char *def, use_cb = 2; } statusbar_x = answer_len; - finished = FALSE; } #endif break;