aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen_basic_spec.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2018-05-04 19:10:45 +0200
committerMarco Hinz <mh.codebro@gmail.com>2018-05-04 22:14:27 +0200
commitec1a7791b00f98460c60e7ae4eec383dce741de8 (patch)
tree66d025b43dbd0358b11ad662f24b5239247b8c0a /test/functional/ui/screen_basic_spec.lua
parent16ce2e006bb4c83e9054cdbfe780ff25fc757fc2 (diff)
downloadrneovim-ec1a7791b00f98460c60e7ae4eec383dce741de8.tar.gz
rneovim-ec1a7791b00f98460c60e7ae4eec383dce741de8.tar.bz2
rneovim-ec1a7791b00f98460c60e7ae4eec383dce741de8.zip
test: screen artifacts
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
-rw-r--r--test/functional/ui/screen_basic_spec.lua39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua
index 7fafd6b352..478f703da9 100644
--- a/test/functional/ui/screen_basic_spec.lua
+++ b/test/functional/ui/screen_basic_spec.lua
@@ -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)