mirror of
https://github.com/neovim/neovim.git
synced 2026-08-04 14:48:45 +00:00
backport: fix(ui2): clear empty cmdline after backspace (#41048)
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.
(cherry picked from commit 1dbc766fa7)
This commit is contained in:
@@ -275,6 +275,22 @@ describe('cmdline2', function()
|
||||
{16::}%{15:s}{16:/.\{//}^ } |
|
||||
]])
|
||||
end)
|
||||
|
||||
it('is empty after backspace', function()
|
||||
feed(':')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*12
|
||||
{16::}^ |
|
||||
]])
|
||||
|
||||
feed('<BS>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|*12
|
||||
|
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('cmdline2', function()
|
||||
|
||||
Reference in New Issue
Block a user