summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-04 18:04:16 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-04 18:04:16 +0200
commita0a6f2776eabfbd4d9174fabdf3921beb7348eda (patch)
tree19ec97137672477ed907299e614c673159fe5813 /src/syntax.c
parent19a3d68b2cd4beb1ee1d97a84ad4e860ffe0cbb2 (diff)
downloadvim-git-a0a6f2776eabfbd4d9174fabdf3921beb7348eda.tar.gz
patch 8.0.1174: Mac Terminal.app has wrong color for whitev8.0.1174
Problem: Mac Terminal.app has wrong color for white. Solution: Use white from the color cube.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 534d2d21d..d7c482d54 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -7350,6 +7350,10 @@ lookup_color(int idx, int foreground, int *boldp)
else
color = color_numbers_8[idx];
}
+ if (t_colors >= 256 && color == 15 && is_mac_terminal)
+ /* Terminal.app has a bug: 15 is light grey. Use white
+ * from the color cube instead. */
+ color = 231;
}
return color;
}