Ben Schmidt wrote:

> >> Hello,
> >> Please open a file1.
> >> Open a file file2 in a new tab.
> >> Use the File/Close menu to close file2 tab.
> >> The tab is not closed, instead an empty buffer with name "No Name"
> >> replaces file2.
> >
> >> So the File/Close menu is not a synonym for :close.
> >
> >> Is it a feature or a bug ?
> 
> I think it's a bug. Here's the fix:
> 
> diff --git a/runtime/menu.vim b/runtime/menu.vim
> --- a/runtime/menu.vim
> +++ b/runtime/menu.vim
> @@ -101,7 +101,7 @@
>   an 10.320 &File.Open\ Tab\.\.\.<Tab>:tabnew    :browse tabnew<CR>
>   an 10.325 &File.&New<Tab>:enew                 :confirm enew<CR>
>   an <silent> 10.330 &File.&Close<Tab>:close
> -       \ :if winheight(2) < 0 <Bar>
> +       \ :if winheight(2) < 0 && tabpagewinnr(2) == 0 <Bar>
>          \   confirm enew <Bar>
>          \ else <Bar>
>          \   confirm close <Bar>
> 
> OK to include, Bram?

Looks like an improvement.  This was written before tabs existed.

-- 
CRONE:  Who sent you?
ARTHUR: The Knights Who Say Ni!
CRONE:  Aaaagh!  (she looks around in rear) No!  We have no shrubberies here.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui