mirror of git://git.sv.gnu.org/nano.git
linter: do not mess up the input stream when the linter command is empty
Instead simply say that no linter is defined.
This fixes https://savannah.gnu.org/bugs/?65204.
Bug existed since version 5.5, commit bc368133
, but before
that commit nano would crash on an empty linter command.
This commit is contained in:
parent
367f84b0ec
commit
88c8da143f
|
@ -2586,7 +2586,7 @@ void do_linter(void)
|
|||
if (in_restricted_mode())
|
||||
return;
|
||||
|
||||
if (!openfile->syntax || !openfile->syntax->linter) {
|
||||
if (!openfile->syntax || !openfile->syntax->linter || !*openfile->syntax->linter) {
|
||||
statusline(AHEM, _("No linter is defined for this type of file"));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue