From a0f299b4e8dccc2f22ada363a7e293b146c1ece7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 10 Jan 2012 17:13:52 +0100 Subject: =?UTF-8?q?updated=20for=20version=207.3.398=20Problem:=20=20=20?= =?UTF-8?q?=20When=20creating=20more=20than=2010=20location=20lists=20and?= =?UTF-8?q?=20adding=20items=20one=20by=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20one=20a=20previous=20location=20may=20be=20used.=20(Audri?= =?UTF-8?q?us=20Ka=C5=BEukauskas)=20Solution:=20=20=20Clear=20the=20locati?= =?UTF-8?q?on=20list=20completely=20when=20adding=20the=20tenth=20one.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/quickfix.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/quickfix.c') diff --git a/src/quickfix.c b/src/quickfix.c index 794c49380..26eac7be5 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -899,8 +899,7 @@ qf_new_list(qi, qf_title) } else qi->qf_curlist = qi->qf_listcount++; - qi->qf_lists[qi->qf_curlist].qf_index = 0; - qi->qf_lists[qi->qf_curlist].qf_count = 0; + vim_memset(&qi->qf_lists[qi->qf_curlist], 0, (size_t)(sizeof(qf_list_T))); if (qf_title != NULL) { char_u *p = alloc((int)STRLEN(qf_title) + 2); @@ -909,8 +908,6 @@ qf_new_list(qi, qf_title) if (p != NULL) sprintf((char *)p, ":%s", (char *)qf_title); } - else - qi->qf_lists[qi->qf_curlist].qf_title = NULL; } /* -- cgit v1.2.1