forked from aniani/vim
patch 8.0.1513: the jumplist is not always properly cleaned up
Problem: The jumplist is not always properly cleaned up. Solution: Call fname2fnum() before cleanup_jumplist(). (Yegappan Lakshmanan)
This commit is contained in:
@@ -4858,13 +4858,12 @@ f_getjumplist(typval_T *argvars, typval_T *rettv)
|
||||
return;
|
||||
list_append_number(rettv->vval.v_list, (varnumber_T)wp->w_jumplistidx);
|
||||
|
||||
cleanup_jumplist(wp);
|
||||
cleanup_jumplist(wp, TRUE);
|
||||
|
||||
for (i = 0; i < wp->w_jumplistlen; ++i)
|
||||
{
|
||||
if (wp->w_jumplist[i].fmark.mark.lnum == 0)
|
||||
continue;
|
||||
if (wp->w_jumplist[i].fmark.fnum == 0)
|
||||
fname2fnum(&wp->w_jumplist[i]);
|
||||
if ((d = dict_alloc()) == NULL)
|
||||
return;
|
||||
if (list_append_dict(l, d) == FAIL)
|
||||
|
||||
Reference in New Issue
Block a user