aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authornotomo <notomo.motono@gmail.com>2021-01-21 21:49:25 +0900
committernotomo <notomo.motono@gmail.com>2021-01-21 21:49:42 +0900
commitd3989ea8e8b9b538731cc6ce5b86fa2dba897f09 (patch)
tree411b91998d37bbeb1888ff3b461c9f4877af09fb /test/functional/api/vim_spec.lua
parentd68026c9ed0c161ee98d4b71454ef5a7fad1aeec (diff)
downloadrneovim-d3989ea8e8b9b538731cc6ce5b86fa2dba897f09.tar.gz
rneovim-d3989ea8e8b9b538731cc6ce5b86fa2dba897f09.tar.bz2
rneovim-d3989ea8e8b9b538731cc6ce5b86fa2dba897f09.zip
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=[[