speller: be more concise and to the point when something goes wrong
Этот коммит содержится в:
родитель
cdc9482d8f
Коммит
260588af1e
@ -2665,12 +2665,11 @@ void do_spell(void)
|
|||||||
shift_held = TRUE;
|
shift_held = TRUE;
|
||||||
|
|
||||||
if (result_msg != NULL) {
|
if (result_msg != NULL) {
|
||||||
|
/* Avoid giving a failure reason of "Success". */
|
||||||
if (errno == 0)
|
if (errno == 0)
|
||||||
/* Don't display an error message of "Success". */
|
statusline(ALERT, result_msg);
|
||||||
statusline(ALERT, _("Spell checking failed: %s"), result_msg);
|
|
||||||
else
|
else
|
||||||
statusline(ALERT, _("Spell checking failed: %s: %s"), result_msg,
|
statusline(ALERT, _("%s: %s"), result_msg, strerror(errno));
|
||||||
strerror(errno));
|
|
||||||
} else
|
} else
|
||||||
statusbar(_("Finished checking spelling"));
|
statusbar(_("Finished checking spelling"));
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user