Christian Brabandt wrote:

> On Mo, 15 Jun 2015, Bohr Shaw wrote:
> 
> > This is how to reproduce:
> > 
> > vim -Nu NORC
> > :help|wincmd w|1quit
> > 
> > I expect to quit the HELP window, but two windows are both quit and
> > vim exits. If I leave out "wincmd w", it works as expected.
> 
> Hm, I am not sure, how this is supposed to work.
> 
> I find it often hard to predict, when Vim is going to be quit. So I 
> always expect the latter.
> 
> Nevertheless here is a patch, including a test, that fixes that. The 
> behaviour changes slightly:
> 
> command               7.4     patched
> :h|wincmd w|:q    - quits     quits
> :h|only|:q        - quits     quits
> :h|wincmd w|:1q   - quits     does only close help window
> :h|wincmd w|:.q   - quits     leaves help window open

Thanks for the patch.  I'm not sure why you changed the last one in the
list, ":.q" closes the normal window, this is expected to then exit Vim,
since the help window isn't important.

-- 
hundred-and-one symptoms of being an internet addict:
104. When people ask about the Presidential Election you ask "Which country?"

 /// 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui