aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-03-28 14:25:54 +0100
committerGitHub <noreply@github.com>2020-03-28 14:25:54 +0100
commite700a88bb6bdc96f4d62a384aecd3bec2040ac3b (patch)
tree3d6792e4b690cf00a93861aa7d7fd9d90ba61f8e /test
parenta8f784192404864744c323e4394292467c3c0ca7 (diff)
parent4d53bdccc60a4bc39e6ca2c626f4b511881559ef (diff)
downloadrneovim-e700a88bb6bdc96f4d62a384aecd3bec2040ac3b.tar.gz
rneovim-e700a88bb6bdc96f4d62a384aecd3bec2040ac3b.tar.bz2
rneovim-e700a88bb6bdc96f4d62a384aecd3bec2040ac3b.zip
Merge pull request #11746 from Billy4195/add_wildmenu_key
[RFC] Wildmenu support C-E and C-Y as popupmenu
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/wildmode_spec.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua
index 56987d7bc2..99ebc4971e 100644
--- a/test/functional/ui/wildmode_spec.lua
+++ b/test/functional/ui/wildmode_spec.lua
@@ -16,6 +16,44 @@ describe("'wildmenu'", function()
screen:attach()
end)
+ it('C-E to cancel wildmenu completion restore original input', function()
+ feed(':sign <tab>')
+ screen:expect([[
+ |
+ ~ |
+ ~ |
+ define jump list > |
+ :sign define^ |
+ ]])
+ feed('<C-E>')
+ screen:expect([[
+ |
+ ~ |
+ ~ |
+ ~ |
+ :sign ^ |
+ ]])
+ end)
+
+ it('C-Y to apply selection and end wildmenu completion', function()
+ feed(':sign <tab>')
+ screen:expect([[
+ |
+ ~ |
+ ~ |
+ define jump list > |
+ :sign define^ |
+ ]])
+ feed('<tab><C-Y>')
+ screen:expect([[
+ |
+ ~ |
+ ~ |
+ ~ |
+ :sign jump^ |
+ ]])
+ end)
+
it(':sign <tab> shows wildmenu completions', function()
command('set wildmenu wildmode=full')
feed(':sign <tab>')