mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
msg: do not scroll entire screen (#8088)
This commit is contained in:
committed by
Justin M. Keyes
parent
362346f563
commit
98e7112390
@@ -106,16 +106,22 @@ describe('execute()', function()
|
||||
end)
|
||||
|
||||
it('does not corrupt the command display #5422', function()
|
||||
local screen = Screen.new(70, 5)
|
||||
local screen = Screen.new(70, 7)
|
||||
screen:attach()
|
||||
feed(':echo execute("hi ErrorMsg")<CR>')
|
||||
screen:expect([[
|
||||
~ |
|
||||
~ |
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{2: }|
|
||||
:echo execute("hi ErrorMsg") |
|
||||
ErrorMsg xxx ctermfg=15 ctermbg=1 guifg=White guibg=Red |
|
||||
Press ENTER or type command to continue^ |
|
||||
]])
|
||||
{3:Press ENTER or type command to continue}^ |
|
||||
]], {
|
||||
[1] = {bold = true, foreground = Screen.colors.Blue1},
|
||||
[2] = {bold = true, reverse = true},
|
||||
[3] = {bold = true, foreground = Screen.colors.SeaGreen4},
|
||||
})
|
||||
feed('<CR>')
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user