diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-12-20 21:11:38 +0100 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2024-12-22 15:23:43 +0100 |
commit | 394f69a25dc32c5b101ba2d34ac6376b0c75b2a2 (patch) | |
tree | 8609bdc18c695c585a65a3c7733830ad87fa5a2d /test/functional/lua/ui_event_spec.lua | |
parent | e1c2179dd93ed2cd787b1cd016606b1901a1acfe (diff) | |
download | rneovim-394f69a25dc32c5b101ba2d34ac6376b0c75b2a2.tar.gz rneovim-394f69a25dc32c5b101ba2d34ac6376b0c75b2a2.tar.bz2 rneovim-394f69a25dc32c5b101ba2d34ac6376b0c75b2a2.zip |
feat(ui): additional arguments for cmdline_show/hide events
Problem: Unable to tell what highlight the prompt part of a
cmdline_show event should have, and whether cmdline_hide was
emitted after aborting.
Solution: Add additional arguments hl_id to cmdline_show, and abort to
cmdline_hide.
Diffstat (limited to 'test/functional/lua/ui_event_spec.lua')
-rw-r--r-- | test/functional/lua/ui_event_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua index 25cc46e260..2922fb5414 100644 --- a/test/functional/lua/ui_event_spec.lua +++ b/test/functional/lua/ui_event_spec.lua @@ -261,6 +261,7 @@ describe('vim.ui_attach', function() lled in a fast event context | {1:~ }| ]], + cmdline = { { abort = false } }, messages = { { content = { { 'E122: Function Foo already exists, add ! to replace it', 9, 6 } }, @@ -278,6 +279,7 @@ describe('vim.ui_attach', function() Y)? | {1:~ }| ]], + cmdline = { { abort = false } }, messages = { { content = { { 'replace with Replacement (y/n/a/q/l/^E/^Y)?', 6, 18 } }, @@ -294,6 +296,7 @@ describe('vim.ui_attach', function() e mouse (q or empty cancels): | {1:^~ }| ]], + cmdline = { { abort = false } }, messages = { { content = { { 'Select:\nOne\nTwo\n' } }, @@ -359,6 +362,7 @@ describe('vim.ui_attach', function() {9:back from ns: 1.} | {100:Press ENTER or type command to continue}^ | ]], + cmdline = { { abort = false } }, }) feed('<cr>') -- Also when scheduled |