aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/fold_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-25 15:50:54 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-25 15:55:43 +0800
commit84646b80f3adb14d8e7c052047e2cb30a16b1eca (patch)
tree827808f04de68375b24994bb43989bea057fd798 /test/functional/legacy/fold_spec.lua
parentba360a26a294e0ed83ff8e401caabaf4a17c7c30 (diff)
downloadrneovim-84646b80f3adb14d8e7c052047e2cb30a16b1eca.tar.gz
rneovim-84646b80f3adb14d8e7c052047e2cb30a16b1eca.tar.bz2
rneovim-84646b80f3adb14d8e7c052047e2cb30a16b1eca.zip
vim-patch:8.2.2713: folding code not sufficiently tested
Problem: Folding code not sufficiently tested. Solution: Add a few more test cases. (Yegappan Lakshmanan, closes vim/vim#8064) https://github.com/vim/vim/commit/68ffe8cade5e0c52680c00cb9f3f87104fbe653a
Diffstat (limited to 'test/functional/legacy/fold_spec.lua')
-rw-r--r--test/functional/legacy/fold_spec.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/legacy/fold_spec.lua b/test/functional/legacy/fold_spec.lua
index a1cfa50880..83513a3f94 100644
--- a/test/functional/legacy/fold_spec.lua
+++ b/test/functional/legacy/fold_spec.lua
@@ -309,5 +309,27 @@ describe('folding', function()
{1:~ }|
|
]])
+ feed('2G')
+ screen:expect([[
+ one |
+ ^two |
+ three |
+ four |
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ |
+ ]])
+ feed('k')
+ screen:expect([[
+ ^one |
+ {2:+-- 2 lines: two····························}|
+ four |
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ |
+ ]])
end)
end)