per DB'S patch, in do_spell(), when displaying an error message from
do_(int|alt)_speller(), don't display the error message corresponding to errno if errno is zero git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2882 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
7eb30a8353
commit
50a33dbbb7
|
@ -108,6 +108,10 @@ CVS code -
|
||||||
no longer needed, and make the error message more similar to
|
no longer needed, and make the error message more similar to
|
||||||
what the internal spell checker returns under the same
|
what the internal spell checker returns under the same
|
||||||
circumstances. (DLR)
|
circumstances. (DLR)
|
||||||
|
do_spell()
|
||||||
|
- When displaying an error message from do_(int|alt)_speller(),
|
||||||
|
don't display the error message corresponding to errno if
|
||||||
|
errno is zero. (David Benbennick)
|
||||||
do_justify()
|
do_justify()
|
||||||
- If constant cursor position display is on, make sure the
|
- If constant cursor position display is on, make sure the
|
||||||
cursor position is displayed properly when we finish. (DLR)
|
cursor position is displayed properly when we finish. (DLR)
|
||||||
|
|
10
src/nano.c
10
src/nano.c
|
@ -2562,10 +2562,14 @@ void do_spell(void)
|
||||||
* sure that they're cleared off. */
|
* sure that they're cleared off. */
|
||||||
total_refresh();
|
total_refresh();
|
||||||
|
|
||||||
if (spell_msg != NULL)
|
if (spell_msg != NULL) {
|
||||||
statusbar(_("Spell checking failed: %s: %s"), spell_msg,
|
if (errno == 0)
|
||||||
|
/* Don't display an error message of "Success". */
|
||||||
|
statusbar(_("Spell checking failed: %s"), spell_msg);
|
||||||
|
else
|
||||||
|
statusbar(_("Spell checking failed: %s: %s"), spell_msg,
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
else
|
} else
|
||||||
statusbar(_("Finished checking spelling"));
|
statusbar(_("Finished checking spelling"));
|
||||||
}
|
}
|
||||||
#endif /* !DISABLE_SPELLER */
|
#endif /* !DISABLE_SPELLER */
|
||||||
|
|
Loading…
Reference in New Issue