diff options
author | Matthieu Coudron <coudron@iij.ad.jp> | 2019-12-19 21:27:21 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-12-19 12:27:21 -0800 |
commit | 65aca4d857ab9ff278f410b17ef31d91e48a37b7 (patch) | |
tree | 9ccdeede16c5f8c2c19d08df49e544232098a583 /test/functional/ui/cursor_spec.lua | |
parent | 486ddb6eb706575e3af35c4db5b0d3fbe2095545 (diff) | |
download | rneovim-65aca4d857ab9ff278f410b17ef31d91e48a37b7.tar.gz rneovim-65aca4d857ab9ff278f410b17ef31d91e48a37b7.tar.bz2 rneovim-65aca4d857ab9ff278f410b17ef31d91e48a37b7.zip |
TUI: can make the cursor transparent #11519
when setting 'guicursor' highlight blend=100.
Diffstat (limited to 'test/functional/ui/cursor_spec.lua')
-rw-r--r-- | test/functional/ui/cursor_spec.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua index 8ad4182f41..6c913124ac 100644 --- a/test/functional/ui/cursor_spec.lua +++ b/test/functional/ui/cursor_spec.lua @@ -245,6 +245,25 @@ describe('ui/cursor', function() eq('normal', screen.mode) end) + -- update the highlight again to hide cursor + helpers.command('hi Cursor blend=100') + + for _, m in ipairs(expected_mode_info) do + if m.hl_id then + m.attr = {background = Screen.colors.Red, blend = 100} + end + end + screen:expect{grid=[[ + ^ | + ~ | + ~ | + ~ | + test | + ]], condition=function() + eq(expected_mode_info, screen._mode_info) + end + } + -- Another cursor style. meths.set_option('guicursor', 'n-v-c:ver35-blinkwait171-blinkoff172-blinkon173' ..',ve:hor35,o:ver50,i-ci:block,r-cr:hor90,sm:ver42') |