nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit be69a7c29908d8d36272c18e55b25971557cb270
parent 33b576c2891414c945b92702075c7da9386de41c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 23 Sep 2018 14:51:40 +0200

tweaks: rename a variable, to be a bit more fitting

Diffstat:
Msrc/text.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -2947,7 +2947,7 @@ void do_spell(void) char *temp; unsigned stash[sizeof(flags) / sizeof(flags[0])]; /* A storage place for the current flag settings. */ - const char *spell_msg; + const char *result_msg; if (ISSET(RESTRICTED)) { show_restricted_warning(); @@ -2982,8 +2982,8 @@ void do_spell(void) blank_bottombars(); - spell_msg = (alt_speller != NULL) ? do_alt_speller(temp) : - do_int_speller(temp); + result_msg = (alt_speller ? do_alt_speller(temp) : do_int_speller(temp)); + unlink(temp); free(temp); @@ -2994,12 +2994,12 @@ void do_spell(void) * sure that they're cleared off. */ total_refresh(); - if (spell_msg != NULL) { + if (result_msg != NULL) { if (errno == 0) /* Don't display an error message of "Success". */ - statusline(ALERT, _("Spell checking failed: %s"), spell_msg); + statusline(ALERT, _("Spell checking failed: %s"), result_msg); else - statusline(ALERT, _("Spell checking failed: %s: %s"), spell_msg, + statusline(ALERT, _("Spell checking failed: %s: %s"), result_msg, strerror(errno)); } else statusbar(_("Finished checking spelling"));