mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 16:39:38 +08:00
Correctly set the generation count for background highlighting threads
Fixes #2789
This commit is contained in:
parent
8b06d2ad66
commit
ba12bcad33
@ -2122,6 +2122,9 @@ class background_highlight_context_t {
|
||||
// The gen count has changed, so don't do anything.
|
||||
return 0;
|
||||
}
|
||||
VOMIT_ON_FAILURE(
|
||||
pthread_setspecific(generation_count_key, (void *)(uintptr_t)generation_count));
|
||||
|
||||
if (!string_to_highlight.empty()) {
|
||||
highlight_function(string_to_highlight, colors, match_highlight_pos, NULL /* error */,
|
||||
vars);
|
||||
|
Loading…
x
Reference in New Issue
Block a user