]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - vim/patches/vim-7.3.173.patch0
perl-XML-SAX-Base: New package.
[people/ms/ipfire-3.x.git] / vim / patches / vim-7.3.173.patch0
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.173
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.173
11 Problem: After using setqflist() to make the quickfix list empty ":cwindow"
12 may open the window anyway. Also after ":vimgrep".
13 Solution: Correctly check whether the list is empty. (Ingo Karkat)
14 Files: src/quickfix.c
15
16
17 *** ../vim-7.3.172/src/quickfix.c 2011-04-28 17:27:05.000000000 +0200
18 --- src/quickfix.c 2011-05-05 16:55:47.000000000 +0200
19 ***************
20 *** 1164,1170 ****
21
22 /* When no valid entries are present in the list, qf_ptr points to
23 * the first item in the list */
24 ! if (to_qfl->qf_nonevalid == TRUE)
25 to_qfl->qf_ptr = to_qfl->qf_start;
26 }
27
28 --- 1164,1170 ----
29
30 /* When no valid entries are present in the list, qf_ptr points to
31 * the first item in the list */
32 ! if (to_qfl->qf_nonevalid)
33 to_qfl->qf_ptr = to_qfl->qf_start;
34 }
35
36 ***************
37 *** 2243,2248 ****
38 --- 2243,2249 ----
39 * it if we have errors; otherwise, leave it closed.
40 */
41 if (qi->qf_lists[qi->qf_curlist].qf_nonevalid
42 + || qi->qf_lists[qi->qf_curlist].qf_count == 0
43 || qi->qf_curlist >= qi->qf_listcount)
44 {
45 if (win != NULL)
46 ***************
47 *** 3711,3717 ****
48 }
49
50 if (qi->qf_lists[qi->qf_curlist].qf_index == 0)
51 ! /* empty list or no valid entry */
52 qi->qf_lists[qi->qf_curlist].qf_nonevalid = TRUE;
53 else
54 qi->qf_lists[qi->qf_curlist].qf_nonevalid = FALSE;
55 --- 3712,3718 ----
56 }
57
58 if (qi->qf_lists[qi->qf_curlist].qf_index == 0)
59 ! /* no valid entry */
60 qi->qf_lists[qi->qf_curlist].qf_nonevalid = TRUE;
61 else
62 qi->qf_lists[qi->qf_curlist].qf_nonevalid = FALSE;
63 *** ../vim-7.3.172/src/version.c 2011-05-05 16:41:19.000000000 +0200
64 --- src/version.c 2011-05-05 17:11:57.000000000 +0200
65 ***************
66 *** 716,717 ****
67 --- 716,719 ----
68 { /* Add new patch number below this line */
69 + /**/
70 + 173,
71 /**/
72
73 --
74 "I can't complain, but sometimes I still do." (Joe Walsh)
75
76 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
77 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
78 \\\ an exciting new programming language -- http://www.Zimbu.org ///
79 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///