fix(highlight): 'winhl' shouldn't take priority over API (#31288)

This commit is contained in:
zeertzjq
2024-11-22 06:52:32 +08:00
committed by GitHub
parent 92a83f671b
commit ff75f345ab
4 changed files with 23 additions and 2 deletions

View File

@@ -476,6 +476,7 @@ void nvim_win_set_hl_ns(Window window, Integer ns_id, Error *err)
}
win->w_ns_hl = (NS)ns_id;
win->w_ns_hl_winhl = -1;
win->w_hl_needs_update = true;
redraw_later(win, UPD_NOT_VALID);
}