fix(cmdline): avoid empty @: register after :<CR> (#33126)

Fix https://github.com/neovim/neovim/issues/33125
This commit is contained in:
luukvbaal
2025-03-28 19:48:17 +01:00
committed by GitHub
parent 5554fcc286
commit f4ee0ab2f1
2 changed files with 5 additions and 2 deletions

View File

@@ -900,6 +900,7 @@ local function test_cmdline(linegrid)
cmdline_block = { { { 'if 1' } }, { { ' let x = 1' } } },
})
feed('<CR>')
eq('let x = 1', eval('@:'))
screen:expect({
grid = s1,
cmdline = {