diff --git a/src/files.c b/src/files.c index abd3dc6b0812f50e34bc6c5744d8b9e886af3bd5..6878ace7d49d78987aa989eafbd6a0858b799bcb 100644 --- a/src/files.c +++ b/src/files.c @@ -1763,7 +1763,7 @@ int do_writeout(bool exiting) ans = mallocstrcpy(NULL, #ifndef NANO_TINY - (openfile->mark_set && !exiting) ? "" : + (!exiting && openfile->mark_set) ? "" : #endif openfile->filename); @@ -1778,7 +1778,7 @@ int do_writeout(bool exiting) backupstr = ISSET(BACKUP_FILE) ? _(" [Backup]") : ""; - if (openfile->mark_set && !exiting) + if (!exiting && openfile->mark_set) msg = (append == PREPEND) ? _("Prepend Selection to File") : (append == APPEND) ? _("Append Selection to File") :