0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2017-10-04 18:04:16 +02:00
parent 19a3d68b2c
commit a0a6f2776e
4 changed files with 12 additions and 0 deletions

View File

@@ -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;
}