diff options
author | luukvbaal <luukvbaal@gmail.com> | 2025-04-08 14:47:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-08 05:47:18 -0700 |
commit | 5b1561bb717eae8781ff62646c675c7e842e4444 (patch) | |
tree | 8b6f2293215e5cda5b969b3752f4da6e59263e66 /test | |
parent | c0f46daca5e6b3b5546013e2c3ed87f54fd24b9f (diff) | |
download | rneovim-5b1561bb717eae8781ff62646c675c7e842e4444.tar.gz rneovim-5b1561bb717eae8781ff62646c675c7e842e4444.tar.bz2 rneovim-5b1561bb717eae8781ff62646c675c7e842e4444.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index 2f5ef790f1..7ae69ce1d6 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -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 |