nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 670a56c2416343dba9d48681fea586e8e4635bc3
parent 9b6e476a46387bae9d080f6c80a8c345831d5e76
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Tue, 28 Sep 2004 16:03:03 +0000

cosmetic fix


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

Diffstat:
Msrc/files.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -478,7 +478,7 @@ void do_insertfile(void) { int i; const char *msg; - char *inspath = mallocstrcpy(NULL, ""); + char *ans = mallocstrcpy(NULL, ""); /* The last answer the user typed on the statusbar. Saved for if * they do M-F or cancel the file browser. */ @@ -494,7 +494,7 @@ void do_insertfile(void) else #endif msg = N_("File to insert [from %s] "); - i = statusq(TRUE, insertfile_list, inspath, + i = statusq(TRUE, insertfile_list, ans, #ifndef NANO_SMALL NULL, #endif @@ -508,7 +508,7 @@ void do_insertfile(void) if (i != -1) { int old_current_x = current_x; - inspath = mallocstrcpy(inspath, answer); + ans = mallocstrcpy(ans, answer); #ifndef NANO_SMALL #ifdef ENABLE_MULTIBUFFER @@ -576,7 +576,7 @@ void do_insertfile(void) } else statusbar(_("Cancelled")); - free(inspath); + free(ans); } void do_insertfile_void(void)