Skip to content

Commit 387222b

Browse files
committed
plugin/emacs: Don't use region intersection in Flymake while reporting
This is causing diagnostics to not be cleared sometimes (see #398), it was first introduced for developement, because restarting Flymake without changes in buffers would not delete old diagnostics, I think it's fine if we not specify this option. However I suspect this is a bug in Flymake. Signed-off-by: wagner riffel <[email protected]> (cherry picked from commit 6a223f8)
1 parent 3a01bdd commit 387222b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin/emacs/flymake-quicklintjs.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ REPORT-FN is Flymake's callback."
8787
(buffer-substring-no-properties
8888
(point-min) (point-max)))))))
8989
(if (or diags (zerop (process-exit-status p)))
90-
(funcall report-fn diags
91-
:region (cons (point-min) (point-max)))
90+
(funcall report-fn diags)
9291
(funcall report-fn
9392
:panic :explanation
9493
(buffer-substring

0 commit comments

Comments
 (0)