mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
ex_getln: clear cmdline_block after it's freed
This commit is contained in:
@@ -348,6 +348,35 @@ describe('external cmdline', function()
|
||||
{ { {}, ' line1'} } }, block)
|
||||
end)
|
||||
|
||||
feed('endfunction<cr>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
|
|
||||
]], nil, nil, function()
|
||||
eq(nil, block)
|
||||
end)
|
||||
|
||||
-- Try once more, to check buffer is reinitialized. #8007
|
||||
feed(':function Bar()<cr>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
|
|
||||
]], nil, nil, function()
|
||||
eq({{
|
||||
content = { { {}, "" } },
|
||||
firstc = ":",
|
||||
indent = 2,
|
||||
pos = 0,
|
||||
prompt = "",
|
||||
}}, cmdline)
|
||||
eq({ { { {}, 'function Bar()'} } }, block)
|
||||
end)
|
||||
|
||||
feed('endfunction<cr>')
|
||||
screen:expect([[
|
||||
|
Reference in New Issue
Block a user