nano

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

commit d4a071e4924513a49ed36b2848b2499c34dac670
parent 894d80fc5d26b2d27da1806b9c37646d5abd8401
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Thu, 31 Mar 2005 17:00:43 +0000

in do_insertfile(), fix handling of blank filenames in multibuffer mode
so that they work properly again


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

Diffstat:
Msrc/files.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/files.c b/src/files.c @@ -599,7 +599,11 @@ void do_insertfile( /* If we don't have a file yet, go back to the statusbar * prompt. */ - if (i != 0) + if (i != 0 +#ifdef ENABLE_MULTIBUFFER + && (i != -2 || !ISSET(MULTIBUFFER)) +#endif + ) continue; #ifdef ENABLE_MULTIBUFFER