diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-12 16:29:25 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-10 21:41:32 -0300 |
commit | 748920d505e2997c79e08d87d09c564eaea23a2f (patch) | |
tree | 20a275d44c1723d387875330c0873f594c9aed15 /src/nvim/eval.c | |
parent | 68151636065f9f23ea40dca826964ffafa29c283 (diff) | |
download | rneovim-748920d505e2997c79e08d87d09c564eaea23a2f.tar.gz rneovim-748920d505e2997c79e08d87d09c564eaea23a2f.tar.bz2 rneovim-748920d505e2997c79e08d87d09c564eaea23a2f.zip |
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.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 9974315d3f..913d6bf8c6 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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'; |