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.
master
Benno Schulenberg 2021-05-30 11:30:32 +02:00
parent 635977fe33
commit 97dd505647
1 changed files with 1 additions and 1 deletions

View File

@ -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);