diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-09-02 09:42:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-02 09:42:40 -0400 |
| commit | 350fa5ad7ccc014bcdd0eea2bd76ba09a265452e (patch) | |
| tree | 7098192eb9c32eaf27e6d54ea8180b6652baf23a /test/functional/lua/loader_spec.lua | |
| parent | 3ea7bc3f607bdc08940698e7d049036e1f788c66 (diff) | |
| download | rneovim-350fa5ad7ccc014bcdd0eea2bd76ba09a265452e.tar.gz rneovim-350fa5ad7ccc014bcdd0eea2bd76ba09a265452e.tar.bz2 rneovim-350fa5ad7ccc014bcdd0eea2bd76ba09a265452e.zip | |
fix(multicursor): act on fold contents, not the fold itself #41622
Problem:
If an edit cascades to cursor(s) that happen to be within a closed fold,
the edit acts on the fold itself (`:h fold-behavior`). E.g. "dd" deletes
the entire fold, not the cursor's line within the fold.
Solution:
Check `mc_replaying()` in `hasAnyFolding()`, so folds are ignored during
a multicursor cascade. This means multicursor always replays relative to
text *within* the fold.
Diffstat (limited to 'test/functional/lua/loader_spec.lua')
0 files changed, 0 insertions, 0 deletions