mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 01:34:16 +00:00
fix(messages): validate msg_grid before silent! message with cmdheight=0
fixes #20316
This commit is contained in:
@@ -1183,4 +1183,17 @@ describe('cmdheight=0', function()
|
||||
{1:~ }|
|
||||
]]}
|
||||
end)
|
||||
|
||||
it('with silent! at startup', function()
|
||||
clear{args={'-c', 'set cmdheight=0', '-c', 'autocmd VimEnter * silent! call Foo()'}}
|
||||
screen:attach()
|
||||
-- doesn't crash while not displaying silent! error message
|
||||
screen:expect{grid=[[
|
||||
^ |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
]]}
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user