diff options
| author | luukvbaal <luukvbaal@gmail.com> | 2025-04-11 13:36:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-11 04:36:49 -0700 |
| commit | 064ff74cdbe6699b3bdcca9c9040aaa8154a4f1d (patch) | |
| tree | 9f52b752802149e1f11bccfd4d27c55c32c81928 /runtime/lua/vim/_ftplugin | |
| parent | 5111d66ac9bc9d69067613b610de4cecb475fd53 (diff) | |
| download | rneovim-064ff74cdbe6699b3bdcca9c9040aaa8154a4f1d.tar.gz rneovim-064ff74cdbe6699b3bdcca9c9040aaa8154a4f1d.tar.bz2 rneovim-064ff74cdbe6699b3bdcca9c9040aaa8154a4f1d.zip | |
fix(marks): wrong display after inserting/deleting lines #33389
Problem: Lines to/from which virt_lines or inline virt_text may have
moved are left valid. Similarly the modified region may be
too small to account for moved decorations after inserting
or deleting lines. `redrawOneLine()` can be replaced with
a call to `changed_lines_redraw_buf()`.
Solution: Invalidate the line after a change if there is virt_lines, or
inline virt_text in the buffer with 'wrap' enabled. Extend the
modified region for inserted or deleted lines if there may be
decorations in the buffer. Remove `redrawOneLine()`.
Simplify the logic for `changed_lines_invalidate_win()`.
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'runtime/lua/vim/_ftplugin')
0 files changed, 0 insertions, 0 deletions