mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
fix(ui2): clear empty cmdline after backspace #41043
Problem: Cmdline area shows stale ":" after backspacing out of the command line. Solution: Clear the command line for empty commands. Note that `:<CR>` will now clear the command line too.
This commit is contained in:
@@ -287,6 +287,22 @@ describe('cmdline2', function()
|
||||
]])
|
||||
end)
|
||||
|
||||
it('is empty after backspace', function()
|
||||
feed(':')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*12
|
||||
{16::}^ |
|
||||
]])
|
||||
|
||||
feed('<BS>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|*12
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
||||
it('matchparen highlights', function()
|
||||
exec('source $VIMRUNTIME/plugin/matchparen.lua')
|
||||
feed(':call foo(bar())')
|
||||
|
||||
Reference in New Issue
Block a user