aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/input_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/vimscript/input_spec.lua')
-rw-r--r--test/functional/vimscript/input_spec.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/vimscript/input_spec.lua b/test/functional/vimscript/input_spec.lua
index f490733a7e..0491242876 100644
--- a/test/functional/vimscript/input_spec.lua
+++ b/test/functional/vimscript/input_spec.lua
@@ -427,6 +427,19 @@ describe('inputdialog()', function()
end)
end)
+describe('inputlist()', function()
+ it("only offers the mouse when 'mouse' applies to cmdline mode", function()
+ screen:try_resize(75, 5)
+ feed(':call inputlist(["foo", "bar"])<CR>')
+ screen:expect({ any = vim.pesc('Type number and <Enter> (q or empty cancels): ') })
+ feed('q')
+ command('set mouse=a')
+ feed(':call inputlist(["foo", "bar"])<CR>')
+ screen:expect({ any = vim.pesc('Type number and <Enter> or click with the mouse') })
+ feed('q')
+ end)
+end)
+
describe('confirm()', function()
it('works', function()
api.nvim_set_option_value('more', false, {}) -- Avoid hit-enter prompt