]> git.wh0rd.org Git - nano.git/commitdiff
remove redundancy erroneously introduced when adding the ^T toggle to
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 4 Oct 2004 16:01:37 +0000 (16:01 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 4 Oct 2004 16:01:37 +0000 (16:01 +0000)
the "Go To Line" prompt

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1963 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/search.c

index 121e57c4e92790b1d020e9a974f1f382bbae6918..cf1557237d1ada315c9372fc2a17605d8cebb8f8 100644 (file)
@@ -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;
        }