summaryrefslogtreecommitdiffstats
path: root/src/highlight.c
diff options
context:
space:
mode:
authorMaxim Kim <habamax@gmail.com>2024-02-14 20:28:17 +0100
committerChristian Brabandt <cb@256bit.org>2024-02-14 20:28:17 +0100
commit34e4a05d02a016fe230495be8f6c60ddd56f9567 (patch)
tree27d24ccac03fbf260c89c981979ec6e94fad9b5b /src/highlight.c
parent9b53c052d58f73f2078c61a74622687306e51c17 (diff)
patch 9.1.0106: Visual highlight hard to read with 'termguicolors'v9.1.0106
Problem: Visual highlight hard to read with 'termguicolors' (Maxim Kim) Solution: Set Visual GUI foreground to black (with background=light) and lightgrey (with background=dark) (Maxim Kim) fixes: #14024 closes: #14025 Signed-off-by: Maxim Kim <habamax@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/highlight.c')
-rw-r--r--src/highlight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/highlight.c b/src/highlight.c
index 7fbeeb72a8..9b3b072446 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -222,7 +222,7 @@ static char *(highlight_init_light[]) = {
"SignColumn term=standout ctermbg=Grey ctermfg=DarkBlue guibg=Grey guifg=DarkBlue"),
#endif
CENT("Visual ctermbg=Grey ctermfg=Black",
- "Visual ctermbg=Grey ctermfg=Black guibg=LightGrey"),
+ "Visual ctermbg=Grey ctermfg=Black guibg=LightGrey guifg=Black"),
#ifdef FEAT_DIFF
CENT("DiffAdd term=bold ctermbg=LightBlue",
"DiffAdd term=bold ctermbg=LightBlue guibg=LightBlue"),
@@ -311,7 +311,7 @@ static char *(highlight_init_dark[]) = {
"SignColumn term=standout ctermbg=DarkGrey ctermfg=Cyan guibg=Grey guifg=Cyan"),
#endif
CENT("Visual ctermbg=Grey ctermfg=Black",
- "Visual ctermbg=Grey ctermfg=Black guibg=#575757"),
+ "Visual ctermbg=Grey ctermfg=Black guibg=#575757 guifg=LightGrey"),
#ifdef FEAT_DIFF
CENT("DiffAdd term=bold ctermbg=DarkBlue",
"DiffAdd term=bold ctermbg=DarkBlue guibg=DarkBlue"),