macvim-dev / macvim-dev/macvim

Gvimdiff window opens one or two columns smaller every time it is opened

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

还没有人认领这个 Issue。

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

描述

Steps to reproduce
  1. From a terminal type gvimdiff A B (files do not need to exist)
  2. From gvim type :echo winwidth(0)
  3. Note the value
  4. Close gvim
  5. From a terminal type gvimdiff A B
  6. From gvim type :echo winwidth(0)
  7. 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 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 编号。

调研方向

报告中没有确定源文件或测试。使用 gvimdiff A B 重现宽度缩小的问题,比较多次启动时的 winwidth(0),并检查 MacVim GUI 启动和窗口恢复的入口点;当重复启动能够保留之前关闭的窗口宽度时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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