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