Going back to the filename prompt when the user decides to save a
changed buffer after all, as the buffer may not have a name yet. This fixes Savannah bug #46752. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5512 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
@@ -2297,9 +2297,8 @@ int do_writeout(bool exiting)
|
||||
if (i == 0) {
|
||||
free(ans);
|
||||
return 2; /* Yes, discard the buffer. */
|
||||
}
|
||||
if (i < 0)
|
||||
continue; /* The discard was cancelled. */
|
||||
} else
|
||||
continue; /* Go back to the filename prompt. */
|
||||
}
|
||||
|
||||
ans = mallocstrcpy(ans, answer);
|
||||
|
||||
Reference in New Issue
Block a user