diff options
| author | Volodymyr Chernetskyi <volodymyr_chernetskyi@goodyear.com> | 2026-09-05 19:36:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-05 13:36:14 -0400 |
| commit | 050fa30632e3eb540b0fc9be9343580bdecea2f3 (patch) | |
| tree | 2c87299e8b62ba93a9d80b8973f8d0ef5ec5df38 /runtime/lua | |
| parent | 455b6a810c0bab8dd9b5fdd7b2ca56becdb1f8d2 (diff) | |
| download | rneovim-050fa30632e3eb540b0fc9be9343580bdecea2f3.tar.gz rneovim-050fa30632e3eb540b0fc9be9343580bdecea2f3.tar.bz2 rneovim-050fa30632e3eb540b0fc9be9343580bdecea2f3.zip | |
fix(options): 'scrolloffpad' reads the wrong window #41684
Problem:
`get_scrolloffpad_value()` takes a window, but its else branch reads
`curwin->w_p_sop` instead of `wp->w_p_sop`.
Reachable from Vimscript, since `line('w0', winid)` runs
`update_topline()` on another window without making it current.
Solution:
Read the option from the window that was passed in.
AI-assisted
Diffstat (limited to 'runtime/lua')
0 files changed, 0 insertions, 0 deletions