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/edit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/nvim/edit.c') diff --git a/src/nvim/edit.c b/src/nvim/edit.c index e1a1fb18fa..89696410c9 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -2294,8 +2294,7 @@ static int pum_wanted(void) return FALSE; /* The display looks bad on a B&W display. */ - if (t_colors < 8 - ) + if (!abstract_ui && t_colors < 8) return FALSE; return TRUE; } -- cgit