Christian Brabandt wrote:
> On Tue, December 10, 2013 08:03, Liang Li wrote:
> > Well, I keep on getting errors with syncbind. I've reduced it down to
> > this, I think. I get:
> >
> > E315: ml_get: invalid lnum: 42
> >
> > with this code (using vim -u NONE)
> >
> > fun! Test(...)
> > tabe
> > e temp0
> > vsp temp1
> > norm! 500o
> > norm! G
> > vsp temp2
> > norm! 1000o
> > norm! G
> > windo se scb
> > wincmd t
> > for i in range(winnr('$'))
> > wincmd l
> > endfor
> > syncbind
> > endfun
> >
> > Any ideas? I'm actually having other issues with syncbind too
>
> Bram,
> syncbind uses scrolldown() function, which uses
> the getvpos() function, which always uses the curbuf
> pointer and doesn't care about curwin->w_buffer,
> so I think one must also set the curbuf pointer.
>
> Attached patch fixes it.
Ah, another case of setting curwin but not curbuf.
Thanks for fixing that.
Unfortunately it makes test 37 fail. Was it wrong before the patch?
--
You have the right to remain silent. Anything you say will be
misquoted, then used against you.
/// 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/groups/opt_out.