mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tui: Only set cursor color if the highlight group is valid (#6585)
Closes #6584
This commit is contained in:
parent
22932d8ac2
commit
7e571bca5d
@ -587,10 +587,12 @@ static void tui_set_mode(UI *ui, ModeShape mode)
|
||||
|
||||
if (c.id != 0 && ui->rgb) {
|
||||
int attr = syn_id2attr(c.id);
|
||||
if (attr > 0) {
|
||||
attrentry_T *aep = syn_cterm_attr2entry(attr);
|
||||
data->params[0].i = aep->rgb_bg_color;
|
||||
unibi_out(ui, data->unibi_ext.set_cursor_color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// @param mode editor mode
|
||||
|
Loading…
Reference in New Issue
Block a user