mirror of git://git.sv.gnu.org/nano.git
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.
This commit is contained in:
parent
635977fe33
commit
97dd505647
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue