mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
UI: redraw statusline when entering cmdline (#8347)
This commit is contained in:
@@ -157,6 +157,27 @@ describe('external cmdline', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
it("redraws statusline on entering", function()
|
||||
command('set laststatus=2')
|
||||
command('set statusline=%{mode()}')
|
||||
feed(':')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{3:c^ }|
|
||||
|
|
||||
]], nil, nil, function()
|
||||
eq({{
|
||||
content = { { {}, "" } },
|
||||
firstc = ":",
|
||||
indent = 0,
|
||||
pos = 0,
|
||||
prompt = ""
|
||||
}}, cmdline)
|
||||
end)
|
||||
end)
|
||||
|
||||
it("works with input()", function()
|
||||
feed(':call input("input", "default")<cr>')
|
||||
screen:expect([[
|
||||
|
||||
Reference in New Issue
Block a user