mirror of
https://github.com/neovim/neovim.git
synced 2025-11-13 05:48:51 +00:00
api(echo): should clear cmdline before echo
This commit is contained in:
@@ -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=[[
|
||||
|
||||
Reference in New Issue
Block a user