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: 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)
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
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;
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;
39 * it if we have errors; otherwise, leave it closed.
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)
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;
54 qi->qf_lists[qi->qf_curlist].qf_nonevalid = FALSE;
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;
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
68 { /* Add new patch number below this line */
74 "I can't complain, but sometimes I still do." (Joe Walsh)
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 ///