Christian Brabandt wrote:

> On So, 24 Nov 2013, rame...@gmail.com wrote:
> 
> > Hello VIM developers,
> > 
> > There is a problem when working with switchbuf=useopen and :sb -alternate 
> > buffer is not updated correctly;
> > 
> > To reproduce:
> > 
> > vim -u NONE
> > :set swb=useopen
> > :new a
> > :new b
> > :new c
> > :ls (just checking - c is %, b is #)
> > :sb a
> > :ls (a became % as expected, but the alternate buffer is now b while I'd 
> > expect it to be c)
> > 
> > I'm runnign VIM 7.4.103 on linux, but I think it is an old issue.
> 
> I looked it up in the code and to my surprise it is not a bug but a 
> feature. The alternate filename is window local, thus it depends on the 
> window in which you issue the :ls command what '#' will be expanded to. 
> You can check by running :windo :ls and see the difference.
> 
> I suggest, that this is documented, something like this patch:

Thanks, I'll add something like that.


-- 
I learned the customs and mannerisms of engineers by observing them, much the
way Jane Goodall learned about the great apes, but without the hassle of
grooming.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui