From 2b49a19793f3f36a572a0d5ac8a6e4b5325bcb6a Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 26 Oct 2019 11:52:53 +0200 Subject: [PATCH] linter: report it as an error when running the linting program fails When something goes wrong, nano should beep and the status bar should use the error color (red by default). This fixes https://savannah.gnu.org/bugs/?57116. --- src/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index 5f87bfc4..b6d9875b 100644 --- a/src/text.c +++ b/src/text.c @@ -2890,7 +2890,7 @@ void do_linter(void) waitpid(pid_lint, &lint_status, 0); if (!WIFEXITED(lint_status) || WEXITSTATUS(lint_status) > 2) { - statusbar(invocation_error(openfile->syntax->linter)); + statusline(ALERT, _("Error invoking '%s'"), openfile->syntax->linter); return; }