Merge pull request #8358 from mhinz/screen

[RFC] screen: avoid artifacts
This commit is contained in:
James McCoy
2018-05-04 19:42:58 -04:00
committed by GitHub
2 changed files with 42 additions and 1 deletions

View File

@@ -701,4 +701,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)