Karsten Hopp 81c285
To: vim-dev@vim.org
Karsten Hopp 81c285
Subject: Patch 7.2.162
Karsten Hopp 81c285
Fcc: outbox
Karsten Hopp 81c285
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 81c285
Mime-Version: 1.0
Karsten Hopp 81c285
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 81c285
Content-Transfer-Encoding: 8bit
Karsten Hopp 81c285
------------
Karsten Hopp 81c285
Karsten Hopp 81c285
Patch 7.2.162
Karsten Hopp 81c285
Problem:    The quickfix window may get wrong filetype.
Karsten Hopp 81c285
Solution:   Do not detect the filetype for the quickfix window. (Lech Lorens)
Karsten Hopp 81c285
Files:	    src/quickfix.c
Karsten Hopp 81c285
Karsten Hopp 81c285
Karsten Hopp 81c285
*** ../vim-7.2.161/src/quickfix.c	Sun Feb 22 02:36:36 2009
Karsten Hopp 81c285
--- src/quickfix.c	Wed Apr 22 17:34:57 2009
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 2346,2352 ****
Karsten Hopp 81c285
  	    set_option_value((char_u *)"bt", 0L, (char_u *)"quickfix",
Karsten Hopp 81c285
  								   OPT_LOCAL);
Karsten Hopp 81c285
  	    set_option_value((char_u *)"bh", 0L, (char_u *)"wipe", OPT_LOCAL);
Karsten Hopp 81c285
! 	    set_option_value((char_u *)"diff", 0L, NULL, OPT_LOCAL);
Karsten Hopp 81c285
  	}
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  	/* Only set the height when still in the same tab page and there is no
Karsten Hopp 81c285
--- 2346,2358 ----
Karsten Hopp 81c285
  	    set_option_value((char_u *)"bt", 0L, (char_u *)"quickfix",
Karsten Hopp 81c285
  								   OPT_LOCAL);
Karsten Hopp 81c285
  	    set_option_value((char_u *)"bh", 0L, (char_u *)"wipe", OPT_LOCAL);
Karsten Hopp 81c285
! #ifdef FEAT_DIFF
Karsten Hopp 81c285
! 	    curwin->w_p_diff = FALSE;
Karsten Hopp 81c285
! #endif
Karsten Hopp 81c285
! #ifdef FEAT_FOLDING
Karsten Hopp 81c285
! 	    set_option_value((char_u *)"fdm", 0L, (char_u *)"manual",
Karsten Hopp 81c285
! 								   OPT_LOCAL);
Karsten Hopp 81c285
! #endif
Karsten Hopp 81c285
  	}
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  	/* Only set the height when still in the same tab page and there is no
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 2607,2616 ****
Karsten Hopp 81c285
--- 2613,2624 ----
Karsten Hopp 81c285
      curbuf->b_p_ma = FALSE;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  #ifdef FEAT_AUTOCMD
Karsten Hopp 81c285
+     keep_filetype = TRUE;		/* don't detect 'filetype' */
Karsten Hopp 81c285
      apply_autocmds(EVENT_BUFREADPOST, (char_u *)"quickfix", NULL,
Karsten Hopp 81c285
  							       FALSE, curbuf);
Karsten Hopp 81c285
      apply_autocmds(EVENT_BUFWINENTER, (char_u *)"quickfix", NULL,
Karsten Hopp 81c285
  							       FALSE, curbuf);
Karsten Hopp 81c285
+     keep_filetype = FALSE;
Karsten Hopp 81c285
  #endif
Karsten Hopp 81c285
  
Karsten Hopp 81c285
      /* make sure it will be redrawn */
Karsten Hopp 81c285
*** ../vim-7.2.161/src/version.c	Wed Apr 29 11:00:09 2009
Karsten Hopp 81c285
--- src/version.c	Wed Apr 29 11:49:09 2009
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 678,679 ****
Karsten Hopp 81c285
--- 678,681 ----
Karsten Hopp 81c285
  {   /* Add new patch number below this line */
Karsten Hopp 81c285
+ /**/
Karsten Hopp 81c285
+     162,
Karsten Hopp 81c285
  /**/
Karsten Hopp 81c285
Karsten Hopp 81c285
-- 
Karsten Hopp 81c285
Yesterday is history.
Karsten Hopp 81c285
Tomorrow is a mystery.
Karsten Hopp 81c285
Today is a gift.
Karsten Hopp 81c285
That's why it is called 'present'.
Karsten Hopp 81c285
Karsten Hopp 81c285
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 81c285
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 81c285
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 81c285
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///