nano

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

commit 2b49a19793f3f36a572a0d5ac8a6e4b5325bcb6a
parent fc716156a49901639d851af5285d8a5f79390baf
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 26 Oct 2019 11:52:53 +0200

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.

Diffstat:
Msrc/text.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }