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