Skip to content

Commit f132f35

Browse files
committed
updated for version 7.3.173
Problem: After using setqflist() to make the quickfix list empty ":cwindow" may open the window anyway. Also after ":vimgrep". Solution: Correctly check whether the list is empty. (Ingo Karkat)
1 parent 40683d3 commit f132f35

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/quickfix.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ copy_loclist(from, to)
11641164

11651165
/* When no valid entries are present in the list, qf_ptr points to
11661166
* the first item in the list */
1167-
if (to_qfl->qf_nonevalid == TRUE)
1167+
if (to_qfl->qf_nonevalid)
11681168
to_qfl->qf_ptr = to_qfl->qf_start;
11691169
}
11701170

@@ -2243,6 +2243,7 @@ ex_cwindow(eap)
22432243
* it if we have errors; otherwise, leave it closed.
22442244
*/
22452245
if (qi->qf_lists[qi->qf_curlist].qf_nonevalid
2246+
|| qi->qf_lists[qi->qf_curlist].qf_count == 0
22462247
|| qi->qf_curlist >= qi->qf_listcount)
22472248
{
22482249
if (win != NULL)
@@ -3711,7 +3712,7 @@ set_errorlist(wp, list, action, title)
37113712
}
37123713

37133714
if (qi->qf_lists[qi->qf_curlist].qf_index == 0)
3714-
/* empty list or no valid entry */
3715+
/* no valid entry */
37153716
qi->qf_lists[qi->qf_curlist].qf_nonevalid = TRUE;
37163717
else
37173718
qi->qf_lists[qi->qf_curlist].qf_nonevalid = FALSE;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
173,
717719
/**/
718720
172,
719721
/**/

0 commit comments

Comments
 (0)