nano

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

commit 97dd505647023bd58438d03a62bc259291b92edd
parent 635977fe33daea25205c28eba16ba2fa4cded394
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 30 May 2021 11:30:32 +0200

linter: strip filename and line plus column number from the message

Nano already opens the relevant file (when needed) and puts the cursor
at the relevant spot -- including this information in the message shown
on the bottom bar is just clutter and makes the message harder to read.

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

diff --git a/src/text.c b/src/text.c @@ -2673,7 +2673,7 @@ void do_linter(void) curlint->prev = tmplint; if (curlint->prev != NULL) curlint->prev->next = curlint; - curlint->msg = copy_of(message); + curlint->msg = copy_of(strstr(message, ": ") + 2); curlint->lineno = tmplineno; curlint->colno = tmpcolno; curlint->filename = copy_of(filename);