diff --git a/src/nano.c b/src/nano.c index 142bf40653421290feda1891f0e2ae73897417ed..66f6f4a380920d0349b3bcf258a450976335c8af 100644 --- a/src/nano.c +++ b/src/nano.c @@ -613,7 +613,7 @@ void die_save_file(const char *die_filename) retval = get_next_filename(die_filename, ".save"); if (retval[0] != '\0') - failed = (!write_file(retval, NULL, TRUE, OVERWRITE, TRUE)); + failed = !write_file(retval, NULL, TRUE, OVERWRITE, TRUE); if (!failed) fprintf(stderr, _("\nBuffer written to %s\n"), retval); diff --git a/src/text.c b/src/text.c index a13ec43b2797446162a42b44650d5640079a58cc..5746d3b6bf0038f8b5bb3c58d02247886af4f5a3 100644 --- a/src/text.c +++ b/src/text.c @@ -2313,7 +2313,7 @@ void do_spell(void) status = #ifndef NANO_TINY - (openfile->mark_set) ? write_marked_file(temp, temp_file, TRUE, + openfile->mark_set ? write_marked_file(temp, temp_file, TRUE, OVERWRITE) : #endif write_file(temp, temp_file, TRUE, OVERWRITE, FALSE);