diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-09-30 16:19:12 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-09-30 18:36:09 +0200 |
| commit | b563fb8bfc8f30ec93b9d9168fcc5ec7cad114da (patch) | |
| tree | 5fe0e740dfc8262591db290c9588ced87bb99471 /runtime/lua/vim/_ftplugin/lua.lua | |
| parent | 9f7fb8b27dc03daf21ff4524b982e1d6e982ca5e (diff) | |
| download | rneovim-b563fb8bfc8f30ec93b9d9168fcc5ec7cad114da.tar.gz rneovim-b563fb8bfc8f30ec93b9d9168fcc5ec7cad114da.tar.bz2 rneovim-b563fb8bfc8f30ec93b9d9168fcc5ec7cad114da.zip | |
fix(multicursor): zq failed motions, "t", first step
Problem:
- "Vjzqfx" (on a line without "x") places a cursor at the selection start.
- 'nowrapscan': `zqN` places a cursor on a non-match; `zq#` mid-word
places it mid-word.
- `zqfa` places at primary even if not on an "a".
- `zqti` stops after one step (bc "ti" before an "i" does not move).
Solution:
- `did_beep_silent`: counts beeps silenced by `emsg_silent`, so `zq`
steps can detect failed motions.
- If a `zq` step does not move the cursor, retry it from the next char.
- Decide the first `zq` step the same way as `{Visual}zq` already does:
the primary is considered a step only if the motion lands on it.
Diffstat (limited to 'runtime/lua/vim/_ftplugin/lua.lua')
0 files changed, 0 insertions, 0 deletions