From 31b3c62845fe7da41eed0089990e1540b9a41053 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 15 Feb 2024 07:49:39 +0800 Subject: vim-patch:9.1.0106: Visual highlight hard to read with 'termguicolors' 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: vim/vim#14024 closes: vim/vim#14025 https://github.com/vim/vim/commit/34e4a05d02a016fe230495be8f6c60ddd56f9567 Co-authored-by: Maxim Kim --- test/functional/legacy/visual_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/legacy/visual_spec.lua') diff --git a/test/functional/legacy/visual_spec.lua b/test/functional/legacy/visual_spec.lua index 924ab8dbbe..151e5874e1 100644 --- a/test/functional/legacy/visual_spec.lua +++ b/test/functional/legacy/visual_spec.lua @@ -15,7 +15,7 @@ describe('Visual highlight', function() screen:set_default_attr_ids({ [0] = { foreground = Screen.colors.Blue, bold = true }, -- NonText [1] = { bold = true }, -- ModeMsg - [2] = { background = Screen.colors.LightGrey }, -- Visual + [2] = { background = Screen.colors.LightGrey, foreground = Screen.colors.Black }, -- Visual }) screen:attach() end) -- cgit