diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-09-21 15:54:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-21 15:54:57 -0400 |
| commit | 32665c454979ee137f4a3db16baec350205b73ee (patch) | |
| tree | b863aa78fe55424e75d41794e5f6eb7d4d3bc813 /runtime/syntax/cpp.vim | |
| parent | dc049cf0f98332e181d568d91620390ff2f7506b (diff) | |
| download | rneovim-32665c454979ee137f4a3db16baec350205b73ee.tar.gz rneovim-32665c454979ee137f4a3db16baec350205b73ee.tar.bz2 rneovim-32665c454979ee137f4a3db16baec350205b73ee.zip | |
fix(multicursor): cascade mapping-edit during Visual selection #42027
Problem:
- A mapping that edits the buffer during a Visual selection applies only
at the primary cursor. The edit "voids" the pending Visual-session,
because `mc_vsel_refresh` only previews the selection per-cursor and
must not edit.
- A cursor overlapping the primary applies an edit twice, if the
command moves the primary before cascade ("yiwp").
Solution:
Cascade a Visual session's edits span-by-span, like an insert-session.
- Each span is prefixed with "gv" so per-cursor reselect works.
- Void only if no subatom was captured.
- Dedupe cursors against the primary's anchor at cmd start, not its
position after.
Diffstat (limited to 'runtime/syntax/cpp.vim')
0 files changed, 0 insertions, 0 deletions