aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/fold_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-12-26 07:06:43 +0100
committerGitHub <noreply@github.com>2019-12-26 07:06:43 +0100
commitb0196586debd55b9b8be62966084eee12bf0e4ad (patch)
tree738e9c21a57e31950420cb0533b8a8b2a8838eb0 /test/functional/ui/fold_spec.lua
parent927a4f24e09e879ae1006aab32ead81985c61865 (diff)
parentbbad324b175f1bd35201f0ba73fba1b11af7093d (diff)
downloadrneovim-b0196586debd55b9b8be62966084eee12bf0e4ad.tar.gz
rneovim-b0196586debd55b9b8be62966084eee12bf0e4ad.tar.bz2
rneovim-b0196586debd55b9b8be62966084eee12bf0e4ad.zip
Merge #11568 'fillchars: foldopen, foldsep, foldclose'
Diffstat (limited to 'test/functional/ui/fold_spec.lua')
-rw-r--r--test/functional/ui/fold_spec.lua39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/functional/ui/fold_spec.lua b/test/functional/ui/fold_spec.lua
index eb81aba131..0b788e7afb 100644
--- a/test/functional/ui/fold_spec.lua
+++ b/test/functional/ui/fold_spec.lua
@@ -60,6 +60,45 @@ describe("folded lines", function()
]])
end)
+ it("works with multibyte fillchars", function()
+ insert([[
+ aa
+ bb
+ cc
+ dd
+ ee
+ ff]])
+ command("set fillchars+=foldopen:▾,foldsep:│,foldclose:▸")
+ feed_command('1')
+ command("set foldcolumn=2")
+ feed('zf4j')
+ feed('zf2j')
+ feed('zO')
+ screen:expect{grid=[[
+ {7:▾▾}^aa |
+ {7:││}bb |
+ {7:││}cc |
+ {7:││}dd |
+ {7:││}ee |
+ {7:│ }ff |
+ {1:~ }|
+ :1 |
+ ]]}
+
+ feed_command("set rightleft")
+ screen:expect{grid=[[
+ a^a{7:▾▾}|
+ bb{7:││}|
+ cc{7:││}|
+ dd{7:││}|
+ ee{7:││}|
+ ff{7: │}|
+ {1: ~}|
+ :set rightleft |
+ ]]}
+ end)
+
+
it("works with multibyte text", function()
-- Currently the only allowed value of 'maxcombine'
eq(6, meths.get_option('maxcombine'))