Jason Franklin wrote:
> I noticed this week that Ctrl-^ and Ctrl-W-Ctrl-^ are not consistent in their
> behavior when the alternate file is not named. The former works as expected,
> and the latter fails. This was a tad annoying.
>
> Example:
> vim --clean
> :e Xfoo
> :enew
> <C-^><C-^><C-^> " works fine
> <C-W><C-^> " fails to split window on other buffer
>
> With this patch, <C-W><C-^> will work just like <C-^> but it will split
> a window first (with some sanity/error checking before it does so).
>
> I also included MANY test cases. Before these patches, these commands
> weren't tested very well at all.
Thanks! I have to admit I don't use CTRL-^ much because it's not so
easy to type.
I should really find a way to avoid the need for "func!" in tests...
--
WOMAN: King of the who?
ARTHUR: The Britons.
WOMAN: Who are the Britons?
ARTHUR: Well, we all are. we're all Britons and I am your king.
The Quest for the Holy Grail (Monty Python)
/// 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.