mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 06:09:38 +03:00
Deleting the unneeded blanking of a variable.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5579 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
a443760d80
commit
0af2f9e55c
@ -6,6 +6,7 @@
|
||||
nothing can break out of do_prompt(), not a SIGWINCH either.
|
||||
* src/prompt.c (get_prompt_string): Delete code that is dead now.
|
||||
* src/prompt.c (get_prompt_string): Elide an unneeded variable.
|
||||
* src/browser.c (do_browser): Delete unneeded blanking of a variable.
|
||||
|
||||
2016-01-20 Benno Schulenberg <bensberg@justemail.net>
|
||||
* src/files.c (open_buffer): Readjust the indentation and a comment.
|
||||
|
@ -217,10 +217,7 @@ char *do_browser(char *path, DIR *dir)
|
||||
/* If the directory begins with a newline (i.e. an
|
||||
* encoded null), treat it as though it's blank. */
|
||||
if (i < 0 || *answer == '\n') {
|
||||
/* We canceled. Indicate that on the statusbar, and
|
||||
* blank out ans, since we're done with it. */
|
||||
statusbar(_("Cancelled"));
|
||||
ans = mallocstrcpy(ans, "");
|
||||
continue;
|
||||
} else if (i != 0) {
|
||||
/* Put back the "Go to Directory" key and save
|
||||
@ -232,12 +229,7 @@ char *do_browser(char *path, DIR *dir)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* We have a directory. Blank out ans, since we're done
|
||||
* with it. */
|
||||
ans = mallocstrcpy(ans, "");
|
||||
|
||||
/* Convert newlines to nulls, just before we go to the
|
||||
* directory. */
|
||||
/* Convert newlines to nulls in the directory name. */
|
||||
sunder(answer);
|
||||
align(&answer);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user