macvim-dev / macvim-dev/macvim
Gvimdiff window opens one or two columns smaller every time it is opened
Open
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 7.9k
- Forks
- 691
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is identified in the report. Reproduce the shrinking width with gvimdiff A B, compare winwidth(0) across launches, and inspect the MacVim GUI launch and window-restoration entry points; done means repeated launches preserve the previously closed window width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100