Commit 21edf7bb authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: do an assignment in a more transparent way

No related merge requests found
Showing with 6 additions and 6 deletions
+6 -6
...@@ -2861,12 +2861,12 @@ void do_spell(void) ...@@ -2861,12 +2861,12 @@ void do_spell(void)
return; return;
} }
status =
#ifndef NANO_TINY #ifndef NANO_TINY
openfile->mark_set ? write_marked_file(temp, temp_file, TRUE, if (openfile->mark_set)
OVERWRITE) : status = write_marked_file(temp, temp_file, TRUE, OVERWRITE);
else
#endif #endif
write_file(temp, temp_file, TRUE, OVERWRITE, FALSE); status = write_file(temp, temp_file, TRUE, OVERWRITE, FALSE);
if (!status) { if (!status) {
statusbar(_("Error writing temp file: %s"), strerror(errno)); statusbar(_("Error writing temp file: %s"), strerror(errno));
...@@ -2878,7 +2878,7 @@ void do_spell(void) ...@@ -2878,7 +2878,7 @@ void do_spell(void)
statusbar(_("Invoking spell checker, please wait")); statusbar(_("Invoking spell checker, please wait"));
spell_msg = (alt_speller != NULL) ? do_alt_speller(temp) : spell_msg = (alt_speller != NULL) ? do_alt_speller(temp) :
do_int_speller(temp); do_int_speller(temp);
unlink(temp); unlink(temp);
free(temp); free(temp);
...@@ -2894,7 +2894,7 @@ void do_spell(void) ...@@ -2894,7 +2894,7 @@ void do_spell(void)
statusbar(_("Spell checking failed: %s"), spell_msg); statusbar(_("Spell checking failed: %s"), spell_msg);
else else
statusbar(_("Spell checking failed: %s: %s"), spell_msg, statusbar(_("Spell checking failed: %s: %s"), spell_msg,
strerror(errno)); strerror(errno));
} else } else
statusbar(_("Finished checking spelling")); statusbar(_("Finished checking spelling"));
} }
......
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