Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#1,602 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
42/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
vim
領域
desktop

研究方向

報告中沒有指出來源檔案或測試。使用 gvimdiff A B 重現寬度縮小的問題,比較多次啟動時的 winwidth(0),並檢查 MacVim GUI 啟動和視窗還原的進入點;當重複啟動能保留先前關閉的視窗寬度時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

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)
主要語言
Vim Script
星號
7.9k
分支
691
平均合併
20 分鐘
30 天內合併 PR
4

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

macvim-dev/macvim 的其他 Issue

查看 macvim-dev/macvim 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。