macvim-dev / macvim-dev/macvim
MacVim selects one letter more to the right when selecting by mouse
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 7.9k
- Forks
- 691
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce
- write text
- put cursor in the middle of the word
- select backwards few letters by clicking mouse
- One letter more to the right has been selected
Screen recording with --clean parameter
https://github.com/user-attachments/assets/df0712a1-63de-4231-8d8f-b7c1bb2ccd0a
Expected behaviour
Other editors, input fields and terminals doesn't exhibit this behaviour. They select exactly the text requested to be selected.
I've tried: Notes.app, Terminal.app, Kitty, Alakritty, VSCode/VSCodium, Jetbrains editors, chat apps, various browsers
Screen recording from Notes.app
https://github.com/user-attachments/assets/8b10f823-66a6-46fc-a2cf-31ae5adb1bbb
Version of MacVim
MacVim r182 (Vim 9.1.1887)
MacVim installation method
GitHub releases
Environment
macOS Version: 15.7.2
Logs and stack traces
Vim and MacVim configuration where issue is reproducable
No response
How was MacVim launched?
- by launching MacVim.app in macOS (by using the Dock, Spotlight, or the
opencommand) - by running mvim/gvim in the terminal
Issue has been tested with clean configuration
- by running
mvim --clean(orgvim, supplied by MacVim distribution). You can also use the File → "New Clean Window" menu item within MacVim. - by running
vim --clean(in terminal, supplied by MacVim distribution) - by running
vim --clean(in terminal, other suppliers, e.g. /usr/bin/vim)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the backward mouse selection in MacVim r182 on macOS 15.7.2 with --clean, then compare it with the terminal Vim behavior and the supplied editor recordings. Done means selecting backward by mouse highlights exactly the requested characters without the extra character to the right.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, vim
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100