forked from aniani/vim
updated for version 7.3.398
Problem: When creating more than 10 location lists and adding items one by one a previous location may be used. (Audrius Kažukauskas) Solution: Clear the location list completely when adding the tenth one.
This commit is contained in:
@@ -899,8 +899,7 @@ qf_new_list(qi, qf_title)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
qi->qf_curlist = qi->qf_listcount++;
|
qi->qf_curlist = qi->qf_listcount++;
|
||||||
qi->qf_lists[qi->qf_curlist].qf_index = 0;
|
vim_memset(&qi->qf_lists[qi->qf_curlist], 0, (size_t)(sizeof(qf_list_T)));
|
||||||
qi->qf_lists[qi->qf_curlist].qf_count = 0;
|
|
||||||
if (qf_title != NULL)
|
if (qf_title != NULL)
|
||||||
{
|
{
|
||||||
char_u *p = alloc((int)STRLEN(qf_title) + 2);
|
char_u *p = alloc((int)STRLEN(qf_title) + 2);
|
||||||
@@ -909,8 +908,6 @@ qf_new_list(qi, qf_title)
|
|||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
sprintf((char *)p, ":%s", (char *)qf_title);
|
sprintf((char *)p, ":%s", (char *)qf_title);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
qi->qf_lists[qi->qf_curlist].qf_title = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
398,
|
||||||
/**/
|
/**/
|
||||||
397,
|
397,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user