macvim-dev / macvim-dev/macvim

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

未关闭
#1,618 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Vim Script
星标
7.9k
派生
691
PR 合并指标
30 天内没有已合并 PR

描述

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)

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在 macOS 15.7.2 上使用 --clean 复现 MacVim r182 中通过鼠标向后选择的行为,然后将其与终端 Vim 的行为以及提供的编辑器录制进行比较。当通过鼠标向后选择时恰好高亮所请求的字符,且不包含右侧多出的字符时,即可视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
macos, vim
领域
desktop
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。