From 5dc5db1557dd438f205698a31b85a83708e3b48f Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 6 Jul 2019 08:37:25 -0400 Subject: vim-patch:8.0.0755: terminal window does not have colors in the GUI Problem: Terminal window does not have colors in the GUI. Solution: Lookup the GUI color. https://github.com/vim/vim/commit/26af85d97ba1ed0ade6cdd41890ca04ed879b9c7 --- src/nvim/syntax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 354590b9ec..ea6dc435df 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -6829,7 +6829,7 @@ void do_highlight(const char *line, const bool forceit, const bool init) } xfree(HL_TABLE()[idx].sg_rgb_fg_name); - if (strcmp(arg, "NONE")) { + if (strcmp(arg, "NONE") != 0) { HL_TABLE()[idx].sg_rgb_fg_name = (char_u *)xstrdup((char *)arg); HL_TABLE()[idx].sg_rgb_fg = name_to_color((const char_u *)arg); } else { -- cgit