3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.462
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.462
3ef2ca
Problem:    Setting the local value of 'backupcopy' empty gives an error.
3ef2ca
	    (Peter Mattern)
3ef2ca
Solution:   When using an empty value set the flags to zero. (Hirohito
3ef2ca
	    Higashi)
3ef2ca
Files:	    src/option.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.461/src/option.c	2014-09-23 15:45:04.870801055 +0200
3ef2ca
--- src/option.c	2014-09-29 17:03:06.963943648 +0200
3ef2ca
***************
3ef2ca
*** 5742,5756 ****
3ef2ca
  	    flags = &curbuf->b_bkc_flags;
3ef2ca
  	}
3ef2ca
  
3ef2ca
! 	if (opt_strings_flags(bkc, p_bkc_values, flags, TRUE) != OK)
3ef2ca
! 	    errmsg = e_invarg;
3ef2ca
! 	if ((((int)*flags & BKC_AUTO) != 0)
3ef2ca
! 		+ (((int)*flags & BKC_YES) != 0)
3ef2ca
! 		+ (((int)*flags & BKC_NO) != 0) != 1)
3ef2ca
  	{
3ef2ca
! 	    /* Must have exactly one of "auto", "yes"  and "no". */
3ef2ca
! 	    (void)opt_strings_flags(oldval, p_bkc_values, flags, TRUE);
3ef2ca
! 	    errmsg = e_invarg;
3ef2ca
  	}
3ef2ca
      }
3ef2ca
  
3ef2ca
--- 5742,5762 ----
3ef2ca
  	    flags = &curbuf->b_bkc_flags;
3ef2ca
  	}
3ef2ca
  
3ef2ca
! 	if ((opt_flags & OPT_LOCAL) && *bkc == NUL)
3ef2ca
! 	    /* make the local value empty: use the global value */
3ef2ca
! 	    *flags = 0;
3ef2ca
! 	else
3ef2ca
  	{
3ef2ca
! 	    if (opt_strings_flags(bkc, p_bkc_values, flags, TRUE) != OK)
3ef2ca
! 		errmsg = e_invarg;
3ef2ca
! 	    if ((((int)*flags & BKC_AUTO) != 0)
3ef2ca
! 		    + (((int)*flags & BKC_YES) != 0)
3ef2ca
! 		    + (((int)*flags & BKC_NO) != 0) != 1)
3ef2ca
! 	    {
3ef2ca
! 		/* Must have exactly one of "auto", "yes"  and "no". */
3ef2ca
! 		(void)opt_strings_flags(oldval, p_bkc_values, flags, TRUE);
3ef2ca
! 		errmsg = e_invarg;
3ef2ca
! 	    }
3ef2ca
  	}
3ef2ca
      }
3ef2ca
  
3ef2ca
*** ../vim-7.4.461/src/version.c	2014-09-27 11:18:08.179520979 +0200
3ef2ca
--- src/version.c	2014-09-29 17:13:50.235945053 +0200
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     462,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Some of the well known MS-Windows errors:
3ef2ca
	EMEMORY		Memory error caused by..., eh...
3ef2ca
	ELICENSE	Your license has expired, give us more money!
3ef2ca
	EMOUSE		Mouse moved, reinstall Windows
3ef2ca
	EILLEGAL	Illegal error, you are not allowed to see this
3ef2ca
	EVIRUS		Undetectable virus found
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    ///