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

in multibuffer mode, using a blank filename at the "Read File" prompt

shouldn't cancel out of it


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2083 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent c15802f8
Showing with 8 additions and 1 deletion
+8 -1
......@@ -540,7 +540,14 @@ void do_insertfile(
#endif
"./");
if (i < 0) {
#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)
#endif
{
statusbar(_("Cancelled"));
break;
} else {
......
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