allow blank buffers at the "Execute Command" prompt, and document it in

the help text


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2085 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey
2004-11-07 21:30:55 +00:00
parent c136f75f62
commit fdd3becc1e
3 changed files with 11 additions and 12 deletions

View File

@@ -540,14 +540,11 @@ 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 we're in multibuffer mode and the filename or command is
* blank, open a new buffer instead of canceling. */
if (i == -1 || (i == -2
#ifdef ENABLE_MULTIBUFFER
&& !ISSET(MULTIBUFFER)
#endif
#ifndef NANO_SMALL
&& !execute
#endif
))
{