aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-12 16:29:25 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-10 21:41:32 -0300
commit748920d505e2997c79e08d87d09c564eaea23a2f (patch)
tree20a275d44c1723d387875330c0873f594c9aed15 /src/nvim/main.c
parent68151636065f9f23ea40dca826964ffafa29c283 (diff)
downloadrneovim-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/main.c')
-rw-r--r--src/nvim/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 1f6c8ddc81..5e9fde67f5 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -281,9 +281,7 @@ int main(int argc, char **argv)
event_init();
- if (abstract_ui) {
- t_colors = 256;
- } else {
+ if (!abstract_ui) {
// Print a warning if stdout is not a terminal TODO(tarruda): Remove this
// check once the new terminal UI is implemented
check_tty(&params);