I have now exercised a little more discipline when testing. ;)
It appears that I have a plugin which adds a "PopUp.Buffers" menu
(which I have long forgotten and never use). This is the culprit,
without question. To reproduce in a minimal setting, I move aside my
.vimrc, .gvimrc and .vim files.
In this setting, MacVim works, menus look fine. *But* I cannot open
any new (os x) windows (thus this is another bug). Adding an empty
.vimrc makes this (Cmd-N) work again.
Now, to trigger the menu bug:
:amenu PopUp.Buffers.Echo :echo<CR>
Thus, the special "PopUp" menu is the culprit. The same thing happen
with anything, e.g.:
:amenu PopUp.Anything.Echo :echo<CR>
That my multiple "Buffers" *seemed* to be the real "Buffers" repeated
was thanks to the plugin, which did just that.. :]
(Note that :amenu and :menu used with the "PopUp" both trigger the
bug, but :menu adds fewer multiples. :))
(Also note that adding regular custom menus works just fine, no menu bugs.)
I hope this can be of help. For me, it's no longer an issue since I
have removed that plugin (as I never used it).
Thanks for your work on MacVim!
On 8/10/07, björn <bjorn.winckler@...> wrote:
> > Hi (Björn)!
> > When running MacVim (r83 and earlier) on my MBP 15", the menu
> > "Buffers" repeats 8 times (filling most of the menu bar). All are
> > active and show the same content. If I add more menus, 7 "Buffers" are
> > shown, then menus start pushing away the other to the right (leaving
> > the 7 "Buffers").
> Does this happen every time you run MacVim, or is it an intermittent
> problem? What happens if you open another window and Cmd-` back?
> Every time a new window is shown the main menu is cleared of all items
> (except the MacVim menu) and the menus in the newly shown window is used to
> populate the main menu. If you are able to reproduce this bug and can run
> it through the debugger it would help me a lot (since I can't reproduce
> it). The relevant code is inside [MMVimController updateMainMenu]...it
> would be good to know if only the main menu is bad ( i.e. has too many
> "Buffers" menus) or if the array 'mainMenuItems' (a member of
> MMVimController) is bad as well.
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php