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 tooBram, 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. Best, Christian -- -- 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.
syncbind_bug.diff
Description: Binary data
