1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: When creating more than 10 location lists and adding items one by
12 one a previous location may be used. (Audrius Kažukauskas)
13 Solution: Clear the location list completely when adding the tenth one.
17 *** ../vim-7.3.397/src/quickfix.c 2012-01-10 16:28:41.000000000 +0100
18 --- src/quickfix.c 2012-01-10 16:58:52.000000000 +0100
23 qi->qf_curlist = qi->qf_listcount++;
24 ! qi->qf_lists[qi->qf_curlist].qf_index = 0;
25 ! qi->qf_lists[qi->qf_curlist].qf_count = 0;
28 char_u *p = alloc((int)STRLEN(qf_title) + 2);
32 qi->qf_curlist = qi->qf_listcount++;
33 ! vim_memset(&qi->qf_lists[qi->qf_curlist], 0, (size_t)(sizeof(qf_list_T)));
36 char_u *p = alloc((int)STRLEN(qf_title) + 2);
40 sprintf((char *)p, ":%s", (char *)qf_title);
43 - qi->qf_lists[qi->qf_curlist].qf_title = NULL;
48 *** ../vim-7.3.397/src/version.c 2012-01-10 16:28:41.000000000 +0100
49 --- src/version.c 2012-01-10 17:13:09.000000000 +0100
53 { /* Add new patch number below this line */
59 Why don't cannibals eat clowns?
60 Because they taste funny.
62 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
63 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
64 \\\ an exciting new programming language -- http://www.Zimbu.org ///
65 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///