commit 75f4b7cb84e14cac49b467680e304e22f4639f54
parent 5e73eec3ccf1fd54631198ac31e99fdf7d8c2755
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Tue, 3 May 2005 21:35:58 +0000
remove redundant code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2500 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git 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;