aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-03 02:12:54 -0400
committerGitHub <noreply@github.com>2020-10-03 02:12:54 -0400
commitf6ac375604238c94d3dc3eeb9b82e67417460806 (patch)
tree8a3b978d3daa8cc32bf626daaad54f2d35ae30ec /test
parentc10c2fab5b4509a7ff50526b56c669f30ebf87c9 (diff)
parent86ab4a1cb4cbf377d2ddf90f785d811a0be50cfc (diff)
downloadrneovim-f6ac375604238c94d3dc3eeb9b82e67417460806.tar.gz
rneovim-f6ac375604238c94d3dc3eeb9b82e67417460806.tar.bz2
rneovim-f6ac375604238c94d3dc3eeb9b82e67417460806.zip
Merge pull request #13026 from janlazo/vim-8.2.1779
vim-patch:8.1.{2143},8.2.{841,1779,1780,1784,1787}
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/cmdline_spec.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua
index 21c01b3458..01f0d8a4d7 100644
--- a/test/functional/ui/cmdline_spec.lua
+++ b/test/functional/ui/cmdline_spec.lua
@@ -3,6 +3,7 @@ local Screen = require('test.functional.ui.screen')
local clear, feed = helpers.clear, helpers.feed
local source = helpers.source
local command = helpers.command
+local feed_command = helpers.feed_command
local function new_screen(opt)
local screen = Screen.new(25, 5)
@@ -842,3 +843,34 @@ describe('cmdline redraw', function()
]], unchanged=true}
end)
end)
+
+describe('cmdline', function()
+ before_each(function()
+ clear()
+ end)
+
+ it('prints every executed Ex command if verbose >= 16', function()
+ local screen = Screen.new(50, 12)
+ screen:attach()
+ source([[
+ command DoSomething echo 'hello' |set ts=4 |let v = '123' |echo v
+ call feedkeys("\r", 't') " for the hit-enter prompt
+ set verbose=20
+ ]])
+ feed_command('DoSomething')
+ screen:expect([[
+ |
+ ~ |
+ |
+ Executing: DoSomething |
+ Executing: echo 'hello' |set ts=4 |let v = '123' ||
+ echo v |
+ hello |
+ Executing: set ts=4 |let v = '123' |echo v |
+ Executing: let v = '123' |echo v |
+ Executing: echo v |
+ 123 |
+ Press ENTER or type command to continue^ |
+ ]])
+ end)
+end)