On Sat, Jun 14, 2014 at 10:03 PM, Christian Brabandt <[email protected]> wrote:
> Hi Yukihiro! > > On Sa, 14 Jun 2014, Yukihiro Nakadaira wrote: > > > Cursor is not moved immediately when it is moved to other window at once. > > > > Steps to reproduce: > > $ vim -u NONE > > :call setline(1, range(100)) > > :split > > :call cursor(50, 1) | wincmd w " On first window, cursor is not > > moved. > > :wincmd w " Cursor is moved. > > > > This patch should fix it: > > diff -r 6e8b6a7f7bff src/eval.c > --- a/src/eval.c Sat Jun 14 12:53:33 2014 +0200 > +++ b/src/eval.c Sat Jun 14 15:02:24 2014 +0200 > @@ -9882,6 +9882,7 @@ > #endif > > curwin->w_set_curswant = TRUE; > + setcursor(); > rettv->vval.v_number = 0; > } > Thank you. But it doesn't work for me. And this problem is not only for cursor(). It is same with setpos() and :123. -- Yukihiro Nakadaira - [email protected] -- -- 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.
