]> git.wh0rd.org Git - nano.git/commitdiff
remove redundant code
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 3 May 2005 21:35:58 +0000 (21:35 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 3 May 2005 21:35:58 +0000 (21:35 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2500 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/winio.c

index 8aa4939afe47aef69e4d0842d18c68ed26e57fe2..c72c4818e62265802cfa32cf1b3c30e925fac161 100644 (file)
@@ -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;