macvim-dev / macvim-dev/macvim

MacVim selects one letter more to the right when selecting by mouse

Open
#1,618 1 comment 0 reactions 0 assignees View on GitHub

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
  1. write text
  2. put cursor in the middle of the word
  3. select backwards few letters by clicking mouse
  4. 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 open command)
  • by running mvim/gvim in the terminal
Issue has been tested with clean configuration
  • by running mvim --clean (or gvim, 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.