commit 4c9e8f4211316dae78886c2548b234bb94791d39
parent 77e02a3e74e21ad1071f07dfb3eae9b0fc4cfb5b
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 4 Oct 2004 16:01:37 +0000
remove redundancy erroneously introduced when adding the ^T toggle to
the "Go To Line" prompt
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1963 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/search.c b/src/search.c
@@ -869,16 +869,14 @@ void do_gotoline(int line, bool save_pos)
free(ans);
/* Cancel, or Enter with blank string. */
- if (i < 0)
+ if (i < 0) {
statusbar(_("Cancelled"));
-
- if (i == NANO_TOOTHERWHEREIS_KEY) {
- do_search();
+ display_main_list();
return;
}
- if (i != 0) {
- display_main_list();
+ if (i == NANO_TOOTHERWHEREIS_KEY) {
+ do_search();
return;
}