mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
committed by
Justin M. Keyes
parent
9ce34050e5
commit
0bdeec8ef0
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user