diff options
| author | Nick Krichevsky <nick@ollien.com> | 2026-04-26 14:59:28 -0400 |
|---|---|---|
| committer | bfredl <bjorn.linse@gmail.com> | 2026-05-19 11:45:56 +0200 |
| commit | 24f7182390d4720433ced750e9e027845aef8eff (patch) | |
| tree | 8ad0187448aa8a449186b7e50ff3676bf496b945 /test/functional/lua/luaeval_spec.lua | |
| parent | 16d17c50bbccc0c3195656f09660babf45b5f803 (diff) | |
| download | rneovim-24f7182390d4720433ced750e9e027845aef8eff.tar.gz rneovim-24f7182390d4720433ced750e9e027845aef8eff.tar.bz2 rneovim-24f7182390d4720433ced750e9e027845aef8eff.zip | |
fix(mouse): mouse=n should not adjust visual selection
Problem:
When mouse=n is set
- Dragging the mouse enters visual mode, and then stops listening for
mouse events.
- Double/Triple/Quad clicking performs selections.
- Clicking in visual mode moves the cursor (though not through the TUI).
Solution:
Explicitly gate mouse actions that affect visual mode with a check for
MOUSE_VISUAL. This matches the behavior described in :help mouse.
> If enabled for "v" (Visual mode) then double-click selects word-wise,
> triple-click makes it line-wise, and quadruple-click makes it
> rectangular block-wise.
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
0 files changed, 0 insertions, 0 deletions