fix(column): full redraw with 'stc, 'rnu' and inserted lines (#27712)

Problem:  Text is not redrawn with 'relativenumber' when only the 'statuscolumn' is redrawn after inserted lines.
Solution: Force a full redraw if statuscolumn width changed.
This commit is contained in:
luukvbaal
2024-03-03 01:40:46 +01:00
committed by GitHub
parent dc8c086c7e
commit dbf6be296d
2 changed files with 21 additions and 3 deletions

View File

@@ -927,4 +927,17 @@ describe('statuscolumn', function()
|
]])
end)
it('line increase properly redraws buffer text with relativenumber #27709', function()
screen:try_resize(33, 4)
command([[set rnu nuw=3 stc=%l\ ]])
command('call setline(1, range(1, 99))')
feed('Gyyp')
screen:expect([[
98 98 |
99 99 |
100 ^99 |
|
]])
end)
end)