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
master
David Lawrence Ramsey 2005-03-31 17:00:43 +00:00
parent 894d80fc5d
commit d4a071e492
1 changed files with 5 additions and 1 deletions

View File

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