Karsten Hopp 15d6bc
To: vim_dev@googlegroups.com
Karsten Hopp 15d6bc
Subject: Patch 7.3.173
Karsten Hopp 15d6bc
Fcc: outbox
Karsten Hopp 15d6bc
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 15d6bc
Mime-Version: 1.0
Karsten Hopp 15d6bc
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 15d6bc
Content-Transfer-Encoding: 8bit
Karsten Hopp 15d6bc
------------
Karsten Hopp 15d6bc
Karsten Hopp 15d6bc
Patch 7.3.173
Karsten Hopp 15d6bc
Problem:    After using setqflist() to make the quickfix list empty ":cwindow"
Karsten Hopp 15d6bc
	    may open the window anyway.  Also after ":vimgrep".
Karsten Hopp 15d6bc
Solution:   Correctly check whether the list is empty. (Ingo Karkat)
Karsten Hopp 15d6bc
Files:	    src/quickfix.c
Karsten Hopp 15d6bc
Karsten Hopp 15d6bc
Karsten Hopp 15d6bc
*** ../vim-7.3.172/src/quickfix.c	2011-04-28 17:27:05.000000000 +0200
Karsten Hopp 15d6bc
--- src/quickfix.c	2011-05-05 16:55:47.000000000 +0200
Karsten Hopp 15d6bc
***************
Karsten Hopp 15d6bc
*** 1164,1170 ****
Karsten Hopp 15d6bc
  
Karsten Hopp 15d6bc
  	/* When no valid entries are present in the list, qf_ptr points to
Karsten Hopp 15d6bc
  	 * the first item in the list */
Karsten Hopp 15d6bc
! 	if (to_qfl->qf_nonevalid == TRUE)
Karsten Hopp 15d6bc
  	    to_qfl->qf_ptr = to_qfl->qf_start;
Karsten Hopp 15d6bc
      }
Karsten Hopp 15d6bc
  
Karsten Hopp 15d6bc
--- 1164,1170 ----
Karsten Hopp 15d6bc
  
Karsten Hopp 15d6bc
  	/* When no valid entries are present in the list, qf_ptr points to
Karsten Hopp 15d6bc
  	 * the first item in the list */
Karsten Hopp 15d6bc
! 	if (to_qfl->qf_nonevalid)
Karsten Hopp 15d6bc
  	    to_qfl->qf_ptr = to_qfl->qf_start;
Karsten Hopp 15d6bc
      }
Karsten Hopp 15d6bc
  
Karsten Hopp 15d6bc
***************
Karsten Hopp 15d6bc
*** 2243,2248 ****
Karsten Hopp 15d6bc
--- 2243,2249 ----
Karsten Hopp 15d6bc
       * it if we have errors; otherwise, leave it closed.
Karsten Hopp 15d6bc
       */
Karsten Hopp 15d6bc
      if (qi->qf_lists[qi->qf_curlist].qf_nonevalid
Karsten Hopp 15d6bc
+ 	    || qi->qf_lists[qi->qf_curlist].qf_count == 0
Karsten Hopp 15d6bc
  	    || qi->qf_curlist >= qi->qf_listcount)
Karsten Hopp 15d6bc
      {
Karsten Hopp 15d6bc
  	if (win != NULL)
Karsten Hopp 15d6bc
***************
Karsten Hopp 15d6bc
*** 3711,3717 ****
Karsten Hopp 15d6bc
      }
Karsten Hopp 15d6bc
  
Karsten Hopp 15d6bc
      if (qi->qf_lists[qi->qf_curlist].qf_index == 0)
Karsten Hopp 15d6bc
! 	/* empty list or no valid entry */
Karsten Hopp 15d6bc
  	qi->qf_lists[qi->qf_curlist].qf_nonevalid = TRUE;
Karsten Hopp 15d6bc
      else
Karsten Hopp 15d6bc
  	qi->qf_lists[qi->qf_curlist].qf_nonevalid = FALSE;
Karsten Hopp 15d6bc
--- 3712,3718 ----
Karsten Hopp 15d6bc
      }
Karsten Hopp 15d6bc
  
Karsten Hopp 15d6bc
      if (qi->qf_lists[qi->qf_curlist].qf_index == 0)
Karsten Hopp 15d6bc
! 	/* no valid entry */
Karsten Hopp 15d6bc
  	qi->qf_lists[qi->qf_curlist].qf_nonevalid = TRUE;
Karsten Hopp 15d6bc
      else
Karsten Hopp 15d6bc
  	qi->qf_lists[qi->qf_curlist].qf_nonevalid = FALSE;
Karsten Hopp 15d6bc
*** ../vim-7.3.172/src/version.c	2011-05-05 16:41:19.000000000 +0200
Karsten Hopp 15d6bc
--- src/version.c	2011-05-05 17:11:57.000000000 +0200
Karsten Hopp 15d6bc
***************
Karsten Hopp 15d6bc
*** 716,717 ****
Karsten Hopp 15d6bc
--- 716,719 ----
Karsten Hopp 15d6bc
  {   /* Add new patch number below this line */
Karsten Hopp 15d6bc
+ /**/
Karsten Hopp 15d6bc
+     173,
Karsten Hopp 15d6bc
  /**/
Karsten Hopp 15d6bc
Karsten Hopp 15d6bc
-- 
Karsten Hopp 15d6bc
"I can't complain, but sometimes I still do."   (Joe Walsh)
Karsten Hopp 15d6bc
Karsten Hopp 15d6bc
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 15d6bc
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 15d6bc
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 15d6bc
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///