aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/fold_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/fold_spec.lua')
-rw-r--r--test/functional/legacy/fold_spec.lua50
1 files changed, 11 insertions, 39 deletions
diff --git a/test/functional/legacy/fold_spec.lua b/test/functional/legacy/fold_spec.lua
index 83513a3f94..96fad8520c 100644
--- a/test/functional/legacy/fold_spec.lua
+++ b/test/functional/legacy/fold_spec.lua
@@ -72,12 +72,10 @@ describe('folding', function()
dd {{{ |
ee {{{ }}} |
{{{ |
- ff }}} |
- ff }}} |
+ ff }}} |*2
^ |
line 2 foldlevel=2 |
- 1 |
- 1 |
+ 1 |*2
|
]])
@@ -227,22 +225,14 @@ describe('folding', function()
screen:expect([[
{3:+ }{4: 0 }{2:^+-- 2 lines: ·························}|
{3:+ }{4: 1 }{2:+-- 2 lines: ·························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
feed("j")
screen:expect([[
{3:+ }{4: 1 }{2:+-- 2 lines: ·························}|
{3:+ }{4: 0 }{2:^+-- 2 lines: ·························}|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*5
|
]])
end)
@@ -259,10 +249,7 @@ describe('folding', function()
^one |
{2:+-- 2 lines: two····························}|
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
feed('2G')
@@ -271,9 +258,7 @@ describe('folding', function()
^two |
three |
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
feed('4G')
@@ -281,10 +266,7 @@ describe('folding', function()
one |
{2:+-- 2 lines: two····························}|
^four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
feed('3G')
@@ -293,9 +275,7 @@ describe('folding', function()
two |
^three |
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
feed('1G')
@@ -303,10 +283,7 @@ describe('folding', function()
^one |
{2:+-- 2 lines: two····························}|
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
feed('2G')
@@ -315,9 +292,7 @@ describe('folding', function()
^two |
three |
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*3
|
]])
feed('k')
@@ -325,10 +300,7 @@ describe('folding', function()
^one |
{2:+-- 2 lines: two····························}|
four |
- {1:~ }|
- {1:~ }|
- {1:~ }|
- {1:~ }|
+ {1:~ }|*4
|
]])
end)