aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/fold_spec.lua
diff options
context:
space:
mode:
authoroni-link <knil.ino@gmail.com>2019-06-24 00:01:02 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-06-24 00:01:01 +0200
commit0bdeec8ef02bcd497f6df77b2a00420c948c9438 (patch)
tree237ac0b457654991ecde9a7a211c954b4d68e60c /test/functional/ui/fold_spec.lua
parent9ce34050e549baf2c85e23fc3370f3ffebc773ad (diff)
downloadrneovim-0bdeec8ef02bcd497f6df77b2a00420c948c9438.tar.gz
rneovim-0bdeec8ef02bcd497f6df77b2a00420c948c9438.tar.bz2
rneovim-0bdeec8ef02bcd497f6df77b2a00420c948c9438.zip
screen: Adjust buffer sizes for multiple sign columns #10314
* screen: Fix to draw signs with combining characters. The buffer size for signs can be too small, because the upper length limit of a sign can be 56 bytes. If combining characters are only two bytes in size, this reduces to 32 bytes. * screen: Adjust buffer size to maximal sign column count
Diffstat (limited to 'test/functional/ui/fold_spec.lua')
-rw-r--r--test/functional/ui/fold_spec.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/ui/fold_spec.lua b/test/functional/ui/fold_spec.lua
index 5fa299bed9..c5ef718883 100644
--- a/test/functional/ui/fold_spec.lua
+++ b/test/functional/ui/fold_spec.lua
@@ -28,6 +28,22 @@ describe("folded lines", function()
screen:detach()
end)
+ it("work with more than one signcolumn", function()
+ command("set signcolumn=yes:9")
+ feed("i<cr><esc>")
+ feed("vkzf")
+ screen:expect([[
+ {5: ^+-- 2 lines: ·············}|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ |
+ ]])
+ end)
+
it("highlighting with relative line numbers", function()
command("set relativenumber foldmethod=marker")
feed_command("set foldcolumn=2")