Deleting a snippet of dead code -- the MGOTODIR menu doesn't have any
functions that could be executed -- other than the line-edition ones, which are executed under do_prompt(). So the latter won't return unless either it was cancelled or an answer was given. Also, if it /had/ returned with a value bigger than zero, it tried to put back the key sequence for do_gotolinecolumn_void(), which does not exist in the MBROWSER menu, so this would not have done anything. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5744 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
90cffe3fd0
commit
01888abb22
|
@ -3,6 +3,7 @@
|
||||||
also when it's an invalid regex. This fixes Savannah bug #47440.
|
also when it's an invalid regex. This fixes Savannah bug #47440.
|
||||||
* src/search.c (search_init, do_replace): Don't bother setting the
|
* src/search.c (search_init, do_replace): Don't bother setting the
|
||||||
current answer to the empty string, as do_prompt() can handle a NULL.
|
current answer to the empty string, as do_prompt() can handle a NULL.
|
||||||
|
* src/browser.c (do_browser): Delete a snippet of dead code.
|
||||||
|
|
||||||
2016-03-17 Benno Schulenberg <bensberg@justemail.net>
|
2016-03-17 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/search.c (do_research): Use the Search key bindings also during
|
* src/search.c (do_research): Use the Search key bindings also during
|
||||||
|
|
|
@ -228,14 +228,6 @@ char *do_browser(char *path, DIR *dir)
|
||||||
if (i < 0 || *answer == '\n') {
|
if (i < 0 || *answer == '\n') {
|
||||||
statusbar(_("Cancelled"));
|
statusbar(_("Cancelled"));
|
||||||
continue;
|
continue;
|
||||||
} else if (i != 0) {
|
|
||||||
/* Put back the "Go to Directory" key and save
|
|
||||||
* answer in ans, so that the file list is displayed
|
|
||||||
* again, the prompt is displayed again, and what we
|
|
||||||
* typed before at the prompt is displayed again. */
|
|
||||||
unget_kbinput(sc_seq_or(do_gotolinecolumn_void, 0), FALSE, FALSE);
|
|
||||||
ans = mallocstrcpy(ans, answer);
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert newlines to nulls in the directory name. */
|
/* Convert newlines to nulls in the directory name. */
|
||||||
|
|
Loading…
Reference in New Issue