Commit c42489d9 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

linting: switch the mark off when the linter starts

Because the highlighting hinders the display of affected lines,
and, more importantly, only the highlighted part would be written
if the file was modified and the user answers yes to the "Save?"
prompt.

This fixes https://savannah.gnu.org/bugs/?52474.
No related merge requests found
Showing with 3 additions and 0 deletions
+3 -0
......@@ -3068,6 +3068,9 @@ void do_linter(void)
return;
}
openfile->mark_set = FALSE;
edit_refresh();
if (openfile->modified) {
int i = do_yesno_prompt(FALSE, _("Save modified buffer before linting?"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment