aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-06 08:37:25 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-06 08:38:21 -0400
commit5dc5db1557dd438f205698a31b85a83708e3b48f (patch)
tree41b1f67c4396a3a298bfb6c05df43477ad51f8af /src/nvim/syntax.c
parent1b99aa8c53ec3f1e9b8480758ca430aa5c36ed19 (diff)
downloadrneovim-5dc5db1557dd438f205698a31b85a83708e3b48f.tar.gz
rneovim-5dc5db1557dd438f205698a31b85a83708e3b48f.tar.bz2
rneovim-5dc5db1557dd438f205698a31b85a83708e3b48f.zip
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
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c2
1 files changed, 1 insertions, 1 deletions
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 {