`macaction terminate:` (also quit via Cmd-q/logout/reboot) ignores `set confirm`
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 38/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- macos, vim
- 領域
- desktop
研究方向
從 macaction terminate: 的處理開始,將其與正常的 Vim 結束路徑進行比較,並使用回報中的 Cmd-Q 和登出/重新啟動路徑作為重現案例。使用 mvim --clean、set confirm 和未儲存的緩衝區進行重現;當每個緩衝區都獲得確認且 VimLeavePre 在終止期間執行時,即完成。
由索引模型根據 Issue 內容生成。
描述
Steps to reproduce
- Run
set confirm - Create a few buffers with unsaved changes (doesn't matter if the buffers are backed by files or not).
- Run command
macaction terminate:, or press Cmd-Q, or reboot machine.
Expected behaviour
The setting set confirm should prompt for each unsaved buffer whether you are okay with discarding changes. However, macaction terminate: completely ignores this setting, and just shows a dialog that doesn't mention any file names:
Quit without saving?
There are modified buffers, if you quit now all changes will be lost. Quit anyway?
It appears that macaction terminate: skips a lot of normal Vim exit code as well - autocommands like VimLeavePre do not run.
Version of MacVim
r181
MacVim installation method
GitHub release
Environment
macOS 15.4.1 Sequoia
Logs and stack traces
N/A
Vim and MacVim configuration where issue is reproducable
Doesn't appear to depend on config. I tested both with mvim --clean and my usual config, https://github.com/telotortium/vimrc
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)
- 主要語言
- Vim Script
- 星號
- 7.9k
- 分支
- 691
- 平均合併
- 20 分鐘
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
macvim-dev/macvim 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
macvim-dev/macvim#1697 · 6 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1658 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1657 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1655 ·
-
難度 2/5 半天 新手友好度 72/100
macvim-dev/macvim#1653 ·
查看 macvim-dev/macvim 的全部 Issue
相似的 Issue
-
priority: medium
難度 2/5 1-3 小時 新手友好度 68/100
storytold/photocraft#6759 ·
維護者通常 1 天內回覆
-
bug traceback
難度 2/5 1-3 小時 新手友好度 80/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
AimesSoft/NipaPlay-Reload#1021 ·
維護者通常 1 天內回覆
-
area:ui enhancement good first issue
難度 2/5 1-3 小時 新手友好度 72/100
s3onghyun/bulchimbeon#22 ·
-
難度 1/5 1 小時以內 新手友好度 82/100
guaguastandup/zotero-pdf2zh#368 ·