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
This commit is contained in:
oni-link
2019-06-24 00:01:02 +02:00
committed by Justin M. Keyes
parent 9ce34050e5
commit 0bdeec8ef0
3 changed files with 56 additions and 4 deletions

View File

@@ -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")