]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.398
- new
[packages/vim.git] / 7.3.398
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.398
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.398
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.
14 Files:      src/quickfix.c
15
16
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
19 ***************
20 *** 899,906 ****
21       }
22       else
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;
26       if (qf_title != NULL)
27       {
28         char_u *p = alloc((int)STRLEN(qf_title) + 2);
29 --- 899,905 ----
30       }
31       else
32         qi->qf_curlist = qi->qf_listcount++;
33 !     vim_memset(&qi->qf_lists[qi->qf_curlist], 0, (size_t)(sizeof(qf_list_T)));
34       if (qf_title != NULL)
35       {
36         char_u *p = alloc((int)STRLEN(qf_title) + 2);
37 ***************
38 *** 909,916 ****
39         if (p != NULL)
40             sprintf((char *)p, ":%s", (char *)qf_title);
41       }
42 -     else
43 -       qi->qf_lists[qi->qf_curlist].qf_title = NULL;
44   }
45   
46   /*
47 --- 908,913 ----
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
50 ***************
51 *** 716,717 ****
52 --- 716,719 ----
53   {   /* Add new patch number below this line */
54 + /**/
55 +     398,
56   /**/
57
58 -- 
59 Why don't cannibals eat clowns?
60 Because they taste funny.
61
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    ///
This page took 0.078509 seconds and 3 git commands to generate.