aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/mouse_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-02-15 07:49:39 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-02-15 10:50:29 +0800
commit31b3c62845fe7da41eed0089990e1540b9a41053 (patch)
treeec37101abea724286967f973bd3bf73fe432bd0d /test/functional/ui/mouse_spec.lua
parent440ce0d2462677685d2f981ad3e928c28526e6d3 (diff)
downloadrneovim-31b3c62845fe7da41eed0089990e1540b9a41053.tar.gz
rneovim-31b3c62845fe7da41eed0089990e1540b9a41053.tar.bz2
rneovim-31b3c62845fe7da41eed0089990e1540b9a41053.zip
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 <habamax@gmail.com>
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
-rw-r--r--test/functional/ui/mouse_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua
index 7f551c5ee5..0f30bf4471 100644
--- a/test/functional/ui/mouse_spec.lua
+++ b/test/functional/ui/mouse_spec.lua
@@ -22,7 +22,7 @@ describe('ui/mouse/input', function()
screen:attach()
screen:set_default_attr_ids({
[0] = { bold = true, foreground = Screen.colors.Blue },
- [1] = { background = Screen.colors.LightGrey },
+ [1] = { background = Screen.colors.LightGrey, foreground = Screen.colors.Black },
[2] = { bold = true },
[3] = {
foreground = Screen.colors.Blue,
@@ -561,7 +561,7 @@ describe('ui/mouse/input', function()
tab = { background = Screen.colors.LightGrey, underline = true },
sel = { bold = true },
fill = { reverse = true },
- vis = { background = Screen.colors.LightGrey },
+ vis = { background = Screen.colors.LightGrey, foreground = Screen.colors.Black },
})
feed_command('silent file foo | tabnew | file bar')
insert('this is bar')