-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(emacs): clear diagnostics properly in Flymake
When our Flymake code set diagnostics, it set them for the whole buffer with :range. However, the :range was incorrect; the begin/end points given were for the *stdout* temporary buffer, not for the user's code buffer. This meant that Flymake diagnostics markers were often not removed because they were not inside the range. (stdout is often much smaller than the JavaScript source being linted.) Fix this by using :range with points derived from the correct buffer.
- Loading branch information
Showing
3 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters