Dasn wrote:
> On 05/04/09 17:54 +0200, Bram Moolenaar wrote: > > > > In your Test() function there is no redraw. So even though you use "zb" > > it doesn't take effect. If you then later change something that > > triggers a redraw, the relative cursor position hasn't been set yet. > > > > Try the same operation by hand, I didn't see this problem then. > > Hi Bram, > I may not fully understand your point, sorry. > To demonstrate it step by step, I added a breakpoint and two ":redraw!"s > around the trigger point. This time it can be triggered to display the > difference before and after the 'wincmd J' by hand for you. I'll try this later. With the redraw commands it should indeed work. However, if it works OK when executing the commands by hand, and it's not OK when doing the same in a function or script, it's probably because Vim skips quite a bit of redrawing stuff when not working interactively. Can you still reproduce the problem when removing some of the lines? E.g., is the "set bt=nofile" required? -- Just think of all the things we haven't thought of yet. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
