mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-04 15:34:18 +03:00
files: it is fine to "change" the name of a nameless buffer
This fixes https://savannah.gnu.org/bugs/?48156.
This commit is contained in:
parent
f0c65bc988
commit
5dee9fb2c6
@ -2216,7 +2216,7 @@ int do_writeout(bool exiting)
|
||||
append_type append = OVERWRITE;
|
||||
char *given;
|
||||
/* The filename we offer, or what the user typed so far. */
|
||||
bool maychange = FALSE;
|
||||
bool maychange = (openfile->filename[0] == '\0');
|
||||
/* Whether it's okay to save the file under a different name. */
|
||||
#ifndef DISABLE_EXTRA
|
||||
static bool did_credits = FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user