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