Hi,

On Tue, Feb 12, 2019 at 3:55 AM Epheien <[email protected]> wrote:
>
> function f_getjumplist in src/evalfunc.c
>
>     if (list_append_list(rettv->vval.v_list, l) == FAIL)
> return;
>     list_append_number(rettv->vval.v_list, (varnumber_T)wp->w_jumplistidx);
>
>     cleanup_jumplist(wp, TRUE);
>
> cause getjumplist()[1] not match len(getjumplist()[1]) because 
> cleanup_jumplist() will change wp->w_jumplistidx
>

Are you calling the getjumplist() function twice and seeing the returned
w_jumplistidx in the second call is different? or with a single a call to
getjumplist() are you seeing that the returned w_jumplistidx is not correct?

We can fix this by moving the call to cleanup_jumplist() before setting
the w_jumplistidx.

- Yegappan

-- 
-- 
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.

Raspunde prin e-mail lui