mirror of
https://github.com/neovim/neovim.git
synced 2025-11-15 14:59:20 +00:00
test: screen artifacts
This commit is contained in:
@@ -645,4 +645,43 @@ describe('Screen', function()
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
-- Regression test for #8357
|
||||
it('does not have artifacts after temporary chars in insert mode', function()
|
||||
command('inoremap jk <esc>')
|
||||
feed('ifooj')
|
||||
screen:expect([[
|
||||
foo^j |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{2:-- INSERT --} |
|
||||
]])
|
||||
feed('k')
|
||||
screen:expect([[
|
||||
fo^o |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
|
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user