From 260588af1e2c86a2fa566ad5470744af1b28c876 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 5 Jun 2019 14:57:24 +0200 Subject: [PATCH] speller: be more concise and to the point when something goes wrong --- src/text.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/text.c b/src/text.c index 332d6594..520ca639 100644 --- a/src/text.c +++ b/src/text.c @@ -2665,12 +2665,11 @@ void do_spell(void) shift_held = TRUE; if (result_msg != NULL) { + /* Avoid giving a failure reason of "Success". */ if (errno == 0) - /* Don't display an error message of "Success". */ - statusline(ALERT, _("Spell checking failed: %s"), result_msg); + statusline(ALERT, result_msg); else - statusline(ALERT, _("Spell checking failed: %s: %s"), result_msg, - strerror(errno)); + statusline(ALERT, _("%s: %s"), result_msg, strerror(errno)); } else statusbar(_("Finished checking spelling")); }