diff options
| author | Jaehwang Jung <tomtomjhj@gmail.com> | 2025-12-22 18:03:50 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-22 09:03:50 +0000 |
| commit | 033f1123cd9132d211bca874fc9f42b9e50e122e (patch) | |
| tree | 00becfea68bdda793bdcae77dc387cf7587bfbb3 /runtime/lua/vim/_core/stringbuffer.lua | |
| parent | 8d3742ae8da4988f073be29b42dbee401c19f8f7 (diff) | |
fix(marks): wrong line('w$', win) with conceal_lines (#37047)
Background:
Suppose a window has concealed lines, and sets conceallevel>2,
concealcursor="". The concealed lines are displayed if the window is
curwin and the cursor is on the those lines.
Problem:
line('w$', win) switches curwin to win, and then does validate_botline
for curwin. It computes botline assuming the concealed lines displayed,
resulting in a smaller value than the actual botline that the user sees.
Solution:
Evaluate line('w$', win) without switching curwin.
Apply similar changes to other functions that switches curwin.
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'runtime/lua/vim/_core/stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions
