mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
fix(display): scroll redrawing doesn't account for virt_lines above fold #33374
Problem: Logic computing the new height of the modified area does not
take into account virtual lines attached to a folded line.
Solution: Remove `hasFolding()` branch and let `plines_win_full()` do its job.
(cherry picked from commit 5b1561bb71
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
a92155b86b
commit
c4a19bff4e
@@ -2905,11 +2905,13 @@ describe('extmark decorations', function()
|
||||
{2: 1 }for _,item in ipairs(items) do |
|
||||
{2: }line 1 below |
|
||||
{2: 6 }^ for _ = 1, (count or 1) do |
|
||||
{2: 7 } local cell = line[colpos] |
|
||||
{2: 8 } cell.text = text |
|
||||
{2: 9 } cell.hl_id = hl_id |
|
||||
{2: 10 } colpos = colpos+1 |
|
||||
{2: 11 } end |
|
||||
{2: 12 }end |
|
||||
{1:~ }|*7
|
||||
{1:~ }|*5
|
||||
|
|
||||
]])
|
||||
-- w_lines.wl_lastlnum values are valid
|
||||
|
Reference in New Issue
Block a user