Christian 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; > }
Thanks! -- Eight Megabytes And Continually Swapping. /// 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.
