diff options
author | G-flat <63449095+G-flat@users.noreply.github.com> | 2020-10-05 15:15:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 15:15:10 +0800 |
commit | b0769729c805ef33d47f383fd8b2ab18da5fa33c (patch) | |
tree | ee66236c5172c1b65b8a6415f756a78d6db29ac5 /test/functional/ui/cmdline_spec.lua | |
parent | 1d08dfab5b057b51aed98450afd3ad1c888870ff (diff) | |
parent | f7aeac7263c792e1503f9169abed20b6f5b9da99 (diff) | |
download | rneovim-b0769729c805ef33d47f383fd8b2ab18da5fa33c.tar.gz rneovim-b0769729c805ef33d47f383fd8b2ab18da5fa33c.tar.bz2 rneovim-b0769729c805ef33d47f383fd8b2ab18da5fa33c.zip |
Merge pull request #1 from neovim/master
rebase
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_spec.lua | 32 |
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) |