aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBilly Su <g4691821@gmail.com>2020-01-22 17:50:33 +0800
committerBilly Su <g4691821@gmail.com>2020-01-23 12:12:42 +0800
commit961c528afc7f3a21a8c4b118a2c585dbe670c5c5 (patch)
tree2ee8e36fe7a8ec00422894da94bb457fec70a148 /test
parent270cd623efd50a22fe77a7f868ee7569e95a9acc (diff)
downloadrneovim-961c528afc7f3a21a8c4b118a2c585dbe670c5c5.tar.gz
rneovim-961c528afc7f3a21a8c4b118a2c585dbe670c5c5.tar.bz2
rneovim-961c528afc7f3a21a8c4b118a2c585dbe670c5c5.zip
ex_getln.c: wildmenu add cancel and apply ops
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 f3fa711fb1..d655ab20d3 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>')