Commit c136f75f authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

don't create a new buffer if we're in multibuffer mode and command

execution mode


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2084 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent a084ad94
Showing with 8 additions and 5 deletions
+8 -5
...@@ -540,13 +540,16 @@ void do_insertfile( ...@@ -540,13 +540,16 @@ void do_insertfile(
#endif #endif
"./"); "./");
/* If we're in multibuffer mode and file insertion mode, and the
* filename is blank, open a new buffer instead of canceling. */
if (i == -1 || (i == -2
#ifdef ENABLE_MULTIBUFFER #ifdef ENABLE_MULTIBUFFER
/* If we're in multibuffer mode and the filename is blank, open && !ISSET(MULTIBUFFER)
* a new buffer instead of canceling. */ #endif
if (i == -1 || (i == -2 && !ISSET(MULTIBUFFER))) #ifndef NANO_SMALL
#else && !execute
if (i < 0)
#endif #endif
))
{ {
statusbar(_("Cancelled")); statusbar(_("Cancelled"));
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment