macvim-dev / macvim-dev/macvim
Gvimdiff window opens one or two columns smaller every time it is opened
未关闭
还没有人认领这个 Issue。
- 主要语言
- Vim Script
- 星标
- 7.9k
- 派生
- 691
- PR 合并指标
- 30 天内没有已合并 PR
描述
Steps to reproduce
- From a terminal type
gvimdiff A B(files do not need to exist) - From gvim type
:echo winwidth(0) - Note the value
- Close gvim
- From a terminal type
gvimdiff A B - From gvim type
:echo winwidth(0) - Note the value is less than the previous value
Expected behaviour
Expect the newly opened window to be the same size as the previously closed window.
Version of MacVim
MacVim r181 (Vim 9.1.1128)
MacVim installation method
brew install macvim
Environment
macOS: 15.7.1 (24G231)
mac: MacBook Pro M4
terminal: Version 2.14 (455.1)
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)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
报告中没有确定源文件或测试。使用 gvimdiff A B 重现宽度缩小的问题,比较多次启动时的 winwidth(0),并检查 MacVim GUI 启动和窗口恢复的入口点;当重复启动能够保留之前关闭的窗口宽度时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- vim
- 领域
- desktop
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100