dcaee6
To: vim_dev@googlegroups.com
dcaee6
Subject: Patch 7.4.031
dcaee6
Fcc: outbox
dcaee6
From: Bram Moolenaar <Bram@moolenaar.net>
dcaee6
Mime-Version: 1.0
dcaee6
Content-Type: text/plain; charset=UTF-8
dcaee6
Content-Transfer-Encoding: 8bit
dcaee6
------------
dcaee6
dcaee6
Patch 7.4.031
dcaee6
Problem:    ":diffoff!" resets options even when 'diff' is not set. (Charles
dcaee6
	    Cooper)
dcaee6
Solution:   Only resets related options in a window where 'diff' is set.
dcaee6
Files:	    src/diff.c
dcaee6
dcaee6
dcaee6
*** ../vim-7.4.030/src/diff.c	2013-07-17 13:43:15.000000000 +0200
dcaee6
--- src/diff.c	2013-09-20 19:58:47.000000000 +0200
dcaee6
***************
dcaee6
*** 1203,1209 ****
dcaee6
  
dcaee6
      for (wp = firstwin; wp != NULL; wp = wp->w_next)
dcaee6
      {
dcaee6
! 	if (wp == curwin || (eap->forceit && wp->w_p_diff))
dcaee6
  	{
dcaee6
  	    /* Set 'diff', 'scrollbind' off and 'wrap' on. If option values
dcaee6
  	     * were saved in diff_win_options() restore them. */
dcaee6
--- 1203,1209 ----
dcaee6
  
dcaee6
      for (wp = firstwin; wp != NULL; wp = wp->w_next)
dcaee6
      {
dcaee6
! 	if (eap->forceit ? wp->w_p_diff : wp == curwin)
dcaee6
  	{
dcaee6
  	    /* Set 'diff', 'scrollbind' off and 'wrap' on. If option values
dcaee6
  	     * were saved in diff_win_options() restore them. */
dcaee6
*** ../vim-7.4.030/src/version.c	2013-09-19 20:48:59.000000000 +0200
dcaee6
--- src/version.c	2013-09-20 19:59:45.000000000 +0200
dcaee6
***************
dcaee6
*** 740,741 ****
dcaee6
--- 740,743 ----
dcaee6
  {   /* Add new patch number below this line */
dcaee6
+ /**/
dcaee6
+     31,
dcaee6
  /**/
dcaee6
dcaee6
-- 
dcaee6
"Marriage is a wonderful institution...
dcaee6
but who wants to live in an institution?"
dcaee6
 - Groucho Marx
dcaee6
dcaee6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
dcaee6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
dcaee6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
dcaee6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///