aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen_basic_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-07-23 21:08:36 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2018-07-24 16:36:20 +0200
commited5ac84ab0ebf472f6bc07cc72abcf2d53b2ac28 (patch)
treee8d72571f8fbae9019b09a122b772789d90da45e /test/functional/ui/screen_basic_spec.lua
parentc8e7a447c5694e7e2a58f2b112530d896efa30ba (diff)
downloadrneovim-ed5ac84ab0ebf472f6bc07cc72abcf2d53b2ac28.tar.gz
rneovim-ed5ac84ab0ebf472f6bc07cc72abcf2d53b2ac28.tar.bz2
rneovim-ed5ac84ab0ebf472f6bc07cc72abcf2d53b2ac28.zip
tests: test for redrawing tabline when msgsep marker goes outside screen
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
-rw-r--r--test/functional/ui/screen_basic_spec.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua
index 75a2d4978d..f08ada73b3 100644
--- a/test/functional/ui/screen_basic_spec.lua
+++ b/test/functional/ui/screen_basic_spec.lua
@@ -354,6 +354,43 @@ local function screen_tests(newgrid)
{0:~ }|
|
]])
+
+ feed(':echo "'..string.rep('x\\n', 12)..'"<cr>')
+ screen:expect([[
+ x |
+ x |
+ x |
+ x |
+ x |
+ x |
+ x |
+ x |
+ x |
+ x |
+ x |
+ x |
+ |
+ {7:Press ENTER or type command to continue}^ |
+ ]])
+
+ feed('<cr>')
+ screen:expect([[
+ {4: [No Name] }{2: [No Name] }{3: }{4:X}|
+ ^ |
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ |
+ ]])
+
end)
end)