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; } Best, Christian -- Stilblüten aus Polizeiberichten und Gerichtsverhandlungen: In der Nacht vom 24. auf den 25.6.75 entwendete ein unbekannter Täter von meinem Grundstück zwei Hühner, von denen eins ein Hahn war. -- -- 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/d/optout.