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

fix breakage

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3981 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 3 deletions
+7 -3
...@@ -728,8 +728,10 @@ void do_insertfile( ...@@ -728,8 +728,10 @@ void do_insertfile(
"./"); "./");
/* If we're in multibuffer mode and the filename or command is /* If we're in multibuffer mode and the filename or command is
* blank, open a new buffer instead of canceling. */ * blank, open a new buffer instead of canceling. If the
if (i == -1 || (i == -2 * filename or command begins with an unsunder()ed null, treat
* it as though it's blank. */
if (i == -1 || ((i == -2 || answer[0] == '\n')
#ifdef ENABLE_MULTIBUFFER #ifdef ENABLE_MULTIBUFFER
&& !ISSET(MULTIBUFFER) && !ISSET(MULTIBUFFER)
#endif #endif
...@@ -1819,7 +1821,9 @@ int do_writeout(bool exiting) ...@@ -1819,7 +1821,9 @@ int do_writeout(bool exiting)
#endif #endif
); );
if (i < 0) { /* If the filename or command begins with an unsunder()ed null,
* treat it as though it's blank. */
if (i < 0 || answer[0] == '\n') {
statusbar(_("Cancelled")); statusbar(_("Cancelled"));
retval = -1; retval = -1;
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