-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
highlighter: Fix last open racy access in the
*Highlight*()
functions
Otherwise it's possible that `*Highlight*()` functions called from the async initial highlighting can be interrupted by the main goroutine, which then changes the already set and furthermore used `h.lastRegion`. The resulting last region respective set state isn't reliable any longer then.
- Loading branch information
Showing
1 changed file
with
21 additions
and
5 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