micro icon indicating copy to clipboard operation
micro copied to clipboard

highlighter: Fix last open racy access in the `*Highlight*()` functions

Open JoeKar opened this issue 10 months ago • 0 comments

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.

The need for this came up in #3237.

JoeKar avatar Apr 09 '24 20:04 JoeKar