mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
ui: Test for abstract_ui whenever a minimal t_colors value is required
t_colors should not be checked when abstract_ui is active, because nvim UI is not limited to a terminal.
This commit is contained in:
@@ -14440,7 +14440,7 @@ static void f_synIDattr(typval_T *argvars, typval_T *rettv)
|
||||
if (modec != 't' && modec != 'c' && modec != 'g')
|
||||
modec = 0; /* replace invalid with current */
|
||||
} else {
|
||||
if (t_colors > 1)
|
||||
if (abstract_ui || t_colors > 1)
|
||||
modec = 'c';
|
||||
else
|
||||
modec = 't';
|
||||
|
Reference in New Issue
Block a user