diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-12-12 09:44:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 09:44:46 +0800 |
commit | b76cc974b9a5dd206f01872f78e6346e54fb5170 (patch) | |
tree | a43b1b51f3f8e89f32122ef55ebbcd74f723e0d6 /test/functional/terminal/tui_spec.lua | |
parent | 8097b4a7252ec37dbf14bcc1b7c50c12343e54c4 (diff) | |
download | rneovim-b76cc974b9a5dd206f01872f78e6346e54fb5170.tar.gz rneovim-b76cc974b9a5dd206f01872f78e6346e54fb5170.tar.bz2 rneovim-b76cc974b9a5dd206f01872f78e6346e54fb5170.zip |
fix(tui): don't forget to update cursor visibility (#26523)
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 45be0dd3a1..a4e3c1d199 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -1714,6 +1714,36 @@ describe('TUI', function() {3:-- TERMINAL --} | ]]) end) + + it('cursor is not hidden on incsearch with no match', function() + feed_data('ifoo\027') + feed_data('/foo') + screen:expect([[ + {1:foo} | + {4:~ }|*3 + {5:[No Name] [+] }| + /foo{1: } | + {3:-- TERMINAL --} | + ]]) + screen:sleep(10) + feed_data('b') + screen:expect([[ + foo | + {4:~ }|*3 + {5:[No Name] [+] }| + /foob{1: } | + {3:-- TERMINAL --} | + ]]) + screen:sleep(10) + feed_data('a') + screen:expect([[ + foo | + {4:~ }|*3 + {5:[No Name] [+] }| + /fooba{1: } | + {3:-- TERMINAL --} | + ]]) + end) end) describe('TUI', function() |