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
ReHighlightStates()
Otherwise it's possible that `ReHighlightStates()` 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