Files
neovim/src/nvim/api
glepnir 450ba41436 fix(api): adjust Visual position after nvim_buf_set_text #30690
Problem:
Visual selection could end up in the wrong place after
nvim_buf_set_text or nvim_buf_set_lines. In some delete cases,
Visual.lnum was already clamped before the line shift happened, so the
adjustment got skipped.

Solution:
Split fix_cursor_cols into reusable fix_pos_col logic and reuse it
for Visual updates. Also adjust Visual.lnum before changed_lines so
the shift uses the original position before final clamping.
2026-05-18 13:08:26 -04:00
..
2026-03-16 14:52:04 +01:00
2025-09-04 00:11:52 -04:00
2026-04-26 20:25:49 +02:00
2026-03-16 13:05:46 +00:00
2026-04-02 20:57:02 +08:00
2026-04-18 15:38:59 -04:00