]> git.wh0rd.org Git - nano.git/commitdiff
in do_insertfile(), fix handling of blank filenames in multibuffer mode
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 31 Mar 2005 17:00:43 +0000 (17:00 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 31 Mar 2005 17:00:43 +0000 (17:00 +0000)
so that they work properly again

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

src/files.c

index e44dcad3e577ab1816a33b2b556702ad2686c126..cbeb20cd1abe61157e650736357979015f1ffa3a 100644 (file)
@@ -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