From a0a6f2776eabfbd4d9174fabdf3921beb7348eda Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 4 Oct 2017 18:04:16 +0200 Subject: patch 8.0.1174: Mac Terminal.app has wrong color for white Problem: Mac Terminal.app has wrong color for white. Solution: Use white from the color cube. --- src/syntax.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/syntax.c') 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; } -- cgit v1.2.1