test: 'showcmd' with ext_messages and Visual selection (#28393)

Also slightly reorder some code to make comments look less out-of-place.
This commit is contained in:
zeertzjq
2024-04-18 08:33:08 +08:00
committed by GitHub
parent 562719033e
commit e1ca7a7bfc
3 changed files with 26 additions and 15 deletions

View File

@@ -685,7 +685,18 @@ describe('ui/ext_messages', function()
]],
ruler = { { '2,1 All' } },
}
feed('d')
feed('<c-v>k2l')
screen:expect({
grid = [[
{17:ab}^cde |
{17:123}45 |
{1:~ }|*3
]],
showmode = { { '-- VISUAL BLOCK --', 5 } },
showcmd = { { '2x3' } },
ruler = { { '1,3 All' } },
})
feed('o<esc>d')
screen:expect {
grid = [[
abcde |