Karsten Hopp fed8ce
To: vim-dev@vim.org
Karsten Hopp fed8ce
Subject: Patch 7.2.117
Karsten Hopp fed8ce
Fcc: outbox
Karsten Hopp fed8ce
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp fed8ce
Mime-Version: 1.0
Karsten Hopp fed8ce
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp fed8ce
Content-Transfer-Encoding: 8bit
Karsten Hopp fed8ce
------------
Karsten Hopp fed8ce
Karsten Hopp fed8ce
Patch 7.2.117
Karsten Hopp fed8ce
Problem:    Location list incorrectly labelled "Quickfix List".
Karsten Hopp fed8ce
Solution:   Break out of both loops for finding window for location list
Karsten Hopp fed8ce
            buffer. (Lech Lorens)
Karsten Hopp fed8ce
Files:      src/buffer.c, src/quickfix.c, src/screen.c
Karsten Hopp fed8ce
Karsten Hopp fed8ce
Karsten Hopp fed8ce
*** ../vim-7.2.116/src/buffer.c	Tue Jan  6 16:13:42 2009
Karsten Hopp fed8ce
--- src/buffer.c	Tue Feb 17 04:00:51 2009
Karsten Hopp fed8ce
***************
Karsten Hopp fed8ce
*** 5098,5104 ****
Karsten Hopp fed8ce
  	 */
Karsten Hopp fed8ce
  	FOR_ALL_TAB_WINDOWS(tp, win)
Karsten Hopp fed8ce
  	    if (win->w_buffer == buf)
Karsten Hopp fed8ce
! 		break;
Karsten Hopp fed8ce
  	if (win != NULL && win->w_llist_ref != NULL)
Karsten Hopp fed8ce
  	    return _("[Location List]");
Karsten Hopp fed8ce
  	else
Karsten Hopp fed8ce
--- 5098,5105 ----
Karsten Hopp fed8ce
  	 */
Karsten Hopp fed8ce
  	FOR_ALL_TAB_WINDOWS(tp, win)
Karsten Hopp fed8ce
  	    if (win->w_buffer == buf)
Karsten Hopp fed8ce
! 		goto win_found;
Karsten Hopp fed8ce
! win_found:
Karsten Hopp fed8ce
  	if (win != NULL && win->w_llist_ref != NULL)
Karsten Hopp fed8ce
  	    return _("[Location List]");
Karsten Hopp fed8ce
  	else
Karsten Hopp fed8ce
*** ../vim-7.2.116/src/quickfix.c	Sat Nov 15 14:10:23 2008
Karsten Hopp fed8ce
--- src/quickfix.c	Sat Feb 21 22:54:25 2009
Karsten Hopp fed8ce
***************
Karsten Hopp fed8ce
*** 1610,1619 ****
Karsten Hopp fed8ce
  		{
Karsten Hopp fed8ce
  		    goto_tabpage_win(tp, wp);
Karsten Hopp fed8ce
  		    usable_win = 1;
Karsten Hopp fed8ce
! 		    break;
Karsten Hopp fed8ce
  		}
Karsten Hopp fed8ce
  	    }
Karsten Hopp fed8ce
  	}
Karsten Hopp fed8ce
  
Karsten Hopp fed8ce
  	/*
Karsten Hopp fed8ce
  	 * If there is only one window and it is the quickfix window, create a
Karsten Hopp fed8ce
--- 1612,1622 ----
Karsten Hopp fed8ce
  		{
Karsten Hopp fed8ce
  		    goto_tabpage_win(tp, wp);
Karsten Hopp fed8ce
  		    usable_win = 1;
Karsten Hopp fed8ce
! 		    goto win_found;
Karsten Hopp fed8ce
  		}
Karsten Hopp fed8ce
  	    }
Karsten Hopp fed8ce
  	}
Karsten Hopp fed8ce
+ win_found:
Karsten Hopp fed8ce
  
Karsten Hopp fed8ce
  	/*
Karsten Hopp fed8ce
  	 * If there is only one window and it is the quickfix window, create a
Karsten Hopp fed8ce
*** ../vim-7.2.116/src/screen.c	Sat Feb 21 21:22:44 2009
Karsten Hopp fed8ce
--- src/screen.c	Sat Feb 21 21:04:19 2009
Karsten Hopp fed8ce
***************
Karsten Hopp fed8ce
*** 7452,7461 ****
Karsten Hopp fed8ce
  	{
Karsten Hopp fed8ce
  	    outofmem = TRUE;
Karsten Hopp fed8ce
  #ifdef FEAT_WINDOWS
Karsten Hopp fed8ce
! 	    break;
Karsten Hopp fed8ce
  #endif
Karsten Hopp fed8ce
  	}
Karsten Hopp fed8ce
      }
Karsten Hopp fed8ce
  
Karsten Hopp fed8ce
  #ifdef FEAT_MBYTE
Karsten Hopp fed8ce
      for (i = 0; i < p_mco; ++i)
Karsten Hopp fed8ce
--- 7452,7464 ----
Karsten Hopp fed8ce
  	{
Karsten Hopp fed8ce
  	    outofmem = TRUE;
Karsten Hopp fed8ce
  #ifdef FEAT_WINDOWS
Karsten Hopp fed8ce
! 	    goto give_up;
Karsten Hopp fed8ce
  #endif
Karsten Hopp fed8ce
  	}
Karsten Hopp fed8ce
      }
Karsten Hopp fed8ce
+ #ifdef FEAT_WINDOWS
Karsten Hopp fed8ce
+ give_up:
Karsten Hopp fed8ce
+ #endif
Karsten Hopp fed8ce
  
Karsten Hopp fed8ce
  #ifdef FEAT_MBYTE
Karsten Hopp fed8ce
      for (i = 0; i < p_mco; ++i)
Karsten Hopp fed8ce
*** ../vim-7.2.116/src/version.c	Sat Feb 21 22:57:10 2009
Karsten Hopp fed8ce
--- src/version.c	Sat Feb 21 23:58:24 2009
Karsten Hopp fed8ce
***************
Karsten Hopp fed8ce
*** 678,679 ****
Karsten Hopp fed8ce
--- 678,681 ----
Karsten Hopp fed8ce
  {   /* Add new patch number below this line */
Karsten Hopp fed8ce
+ /**/
Karsten Hopp fed8ce
+     117,
Karsten Hopp fed8ce
  /**/
Karsten Hopp fed8ce
Karsten Hopp fed8ce
-- 
Karsten Hopp fed8ce
Laughing helps. It's like jogging on the inside.
Karsten Hopp fed8ce
Karsten Hopp fed8ce
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp fed8ce
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp fed8ce
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp fed8ce
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///