fix(statuscolumn): fix sign column highlights (#21727)

Resolve #21726.
This commit is contained in:
luukvbaal
2023-01-11 02:52:11 +01:00
committed by GitHub
parent 08d5b4275e
commit 93d99aefd3
4 changed files with 112 additions and 84 deletions

View File

@@ -156,6 +156,9 @@ describe('Signs', function()
{0:~ }|
|
]])
-- Check that 'statuscolumn' correctly applies numhl
command('set statuscolumn=%s%=%l\\ ')
screen:expect_unchanged()
end)
it('highlights the cursorline sign with culhl', function()
@@ -233,11 +236,13 @@ describe('Signs', function()
|
]])
command('set cursorlineopt=number')
command('hi! link SignColumn IncSearch')
feed('Go<esc>2G')
screen:expect([[
{1:>>}a |
{8:>>}^b |
{1:>>}c |
{0:~ }|
{5: } |
{0:~ }|
{0:~ }|
{0:~ }|
@@ -249,6 +254,9 @@ describe('Signs', function()
{0:~ }|
|
]])
-- Check that 'statuscolumn' cursorline/signcolumn highlights are the same (#21726)
command('set statuscolumn=%s')
screen:expect_unchanged()
end)
it('multiple signs #9295', function()