macvim-dev / macvim-dev/macvim
buffer renamed "expand(" on save
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 7.9k
- Forks
- 691
- PR merge metrics
- No merged PRs in 30d
Description
This issue has plagued me for years in MacVim and I have not been able to identify the source. It is intermittent, and occurs roughly 1 every 100 hundred saves (so probably 2 or 3 times per day). I cannot say what triggers it but I have not been able to make it go away. Any advice or fix gratefully received.
What happens:
- I hit
<D-s>to save current buffer, which is already associated with a filename - the buffer is not saved
- current buffer is magically renamed
expand(, the contents are unaffected - editing continues as normal (If I try to save again, then a new file called
expand(is saved to disk).
Environment
- Vim version 8.2
- MacOS 11.6
- Terminal: GUI
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
Start by reproducing the intermittent save behavior in MacVim with Vim 8.2 on macOS 11.6 using on a named buffer. Investigate the save path and GUI handling around the buffer being renamed to expand(. Done means the original buffer remains associated with its filename and saves correctly when the issue is triggered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100