From: David Lawrence Ramsey Date: Sun, 7 Nov 2004 18:35:53 +0000 (+0000) Subject: don't create a new buffer if we're in multibuffer mode and command X-Git-Tag: v1.3.5~36 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c136f75f622dc908aca72469438ab9d1410054b3;p=nano.git 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 --- diff --git a/src/files.c b/src/files.c index f993e8d1..cd24143d 100644 --- a/src/files.c +++ b/src/files.c @@ -540,13 +540,16 @@ void do_insertfile( #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 - /* If we're in multibuffer mode and the filename is blank, open - * a new buffer instead of canceling. */ - if (i == -1 || (i == -2 && !ISSET(MULTIBUFFER))) -#else - if (i < 0) + && !ISSET(MULTIBUFFER) +#endif +#ifndef NANO_SMALL + && !execute #endif + )) { statusbar(_("Cancelled")); break;