]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0106: Visual highlight hard to read with 'termguicolors' v9.1.0106
authorMaxim Kim <habamax@gmail.com>
Wed, 14 Feb 2024 19:28:17 +0000 (20:28 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 14 Feb 2024 19:28:17 +0000 (20:28 +0100)
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>
src/highlight.c
src/version.c

index 7fbeeb72a81baeeed6babea39481d72f3da474bb..9b3b07244634d4ecf1f4b1b635e4af26def054a0 100644 (file)
@@ -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"),
index 65b653099f1900bdd3ff437d29c841143a8e1caa..c79fd6b1b75173f0c2210cb7b4a996aab87d2670 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    106,
 /**/
     105,
 /**/