aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-01-22 09:59:02 +0100
committerGitHub <noreply@github.com>2021-01-22 09:59:02 +0100
commitbdfd023f81ccbb026b22b7f1db4310279d5ae34a (patch)
treeba7cd3176b62be456048b4c1559b79ce9a559f63 /test/functional/api/vim_spec.lua
parentb803bfa5aab1a2f8c74984fbf1176d1ff57d8540 (diff)
parentd3989ea8e8b9b538731cc6ce5b86fa2dba897f09 (diff)
downloadrneovim-bdfd023f81ccbb026b22b7f1db4310279d5ae34a.tar.gz
rneovim-bdfd023f81ccbb026b22b7f1db4310279d5ae34a.tar.bz2
rneovim-bdfd023f81ccbb026b22b7f1db4310279d5ae34a.zip
Merge pull request #13813 from notomo/fix-nvim-echo-clear
api(echo): should clear cmdline before echo
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r--test/functional/api/vim_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index 1d8ffc2087..3ff3efb8c9 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -2021,6 +2021,20 @@ describe('API', function()
command('highlight Special guifg=SlateBlue')
end)
+ it('should clear cmdline message before echo', function()
+ feed(':call nvim_echo([["msg"]], v:false, {})<CR>')
+ screen:expect{grid=[[
+ ^ |
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ msg |
+ ]]}
+ end)
+
it('can show highlighted line', function()
nvim_async("echo", {{"msg_a"}, {"msg_b", "Statement"}, {"msg_c", "Special"}}, true, {})
screen:expect{grid=[[