From 748920d505e2997c79e08d87d09c564eaea23a2f Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 12 Dec 2014 16:29:25 -0300 Subject: 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. --- src/nvim/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/main.c') 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(¶ms); -- cgit