Karsten Hopp 800193
To: vim_dev@googlegroups.com
Karsten Hopp 800193
Subject: Patch 7.4.462
Karsten Hopp 800193
Fcc: outbox
Karsten Hopp 800193
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 800193
Mime-Version: 1.0
Karsten Hopp 800193
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 800193
Content-Transfer-Encoding: 8bit
Karsten Hopp 800193
------------
Karsten Hopp 800193
Karsten Hopp 800193
Patch 7.4.462
Karsten Hopp 800193
Problem:    Setting the local value of 'backupcopy' empty gives an error.
Karsten Hopp 800193
	    (Peter Mattern)
Karsten Hopp 800193
Solution:   When using an empty value set the flags to zero. (Hirohito
Karsten Hopp 800193
	    Higashi)
Karsten Hopp 800193
Files:	    src/option.c
Karsten Hopp 800193
Karsten Hopp 800193
Karsten Hopp 800193
*** ../vim-7.4.461/src/option.c	2014-09-23 15:45:04.870801055 +0200
Karsten Hopp 800193
--- src/option.c	2014-09-29 17:03:06.963943648 +0200
Karsten Hopp 800193
***************
Karsten Hopp 800193
*** 5742,5756 ****
Karsten Hopp 800193
  	    flags = &curbuf->b_bkc_flags;
Karsten Hopp 800193
  	}
Karsten Hopp 800193
  
Karsten Hopp 800193
! 	if (opt_strings_flags(bkc, p_bkc_values, flags, TRUE) != OK)
Karsten Hopp 800193
! 	    errmsg = e_invarg;
Karsten Hopp 800193
! 	if ((((int)*flags & BKC_AUTO) != 0)
Karsten Hopp 800193
! 		+ (((int)*flags & BKC_YES) != 0)
Karsten Hopp 800193
! 		+ (((int)*flags & BKC_NO) != 0) != 1)
Karsten Hopp 800193
  	{
Karsten Hopp 800193
! 	    /* Must have exactly one of "auto", "yes"  and "no". */
Karsten Hopp 800193
! 	    (void)opt_strings_flags(oldval, p_bkc_values, flags, TRUE);
Karsten Hopp 800193
! 	    errmsg = e_invarg;
Karsten Hopp 800193
  	}
Karsten Hopp 800193
      }
Karsten Hopp 800193
  
Karsten Hopp 800193
--- 5742,5762 ----
Karsten Hopp 800193
  	    flags = &curbuf->b_bkc_flags;
Karsten Hopp 800193
  	}
Karsten Hopp 800193
  
Karsten Hopp 800193
! 	if ((opt_flags & OPT_LOCAL) && *bkc == NUL)
Karsten Hopp 800193
! 	    /* make the local value empty: use the global value */
Karsten Hopp 800193
! 	    *flags = 0;
Karsten Hopp 800193
! 	else
Karsten Hopp 800193
  	{
Karsten Hopp 800193
! 	    if (opt_strings_flags(bkc, p_bkc_values, flags, TRUE) != OK)
Karsten Hopp 800193
! 		errmsg = e_invarg;
Karsten Hopp 800193
! 	    if ((((int)*flags & BKC_AUTO) != 0)
Karsten Hopp 800193
! 		    + (((int)*flags & BKC_YES) != 0)
Karsten Hopp 800193
! 		    + (((int)*flags & BKC_NO) != 0) != 1)
Karsten Hopp 800193
! 	    {
Karsten Hopp 800193
! 		/* Must have exactly one of "auto", "yes"  and "no". */
Karsten Hopp 800193
! 		(void)opt_strings_flags(oldval, p_bkc_values, flags, TRUE);
Karsten Hopp 800193
! 		errmsg = e_invarg;
Karsten Hopp 800193
! 	    }
Karsten Hopp 800193
  	}
Karsten Hopp 800193
      }
Karsten Hopp 800193
  
Karsten Hopp 800193
*** ../vim-7.4.461/src/version.c	2014-09-27 11:18:08.179520979 +0200
Karsten Hopp 800193
--- src/version.c	2014-09-29 17:13:50.235945053 +0200
Karsten Hopp 800193
***************
Karsten Hopp 800193
*** 743,744 ****
Karsten Hopp 800193
--- 743,746 ----
Karsten Hopp 800193
  {   /* Add new patch number below this line */
Karsten Hopp 800193
+ /**/
Karsten Hopp 800193
+     462,
Karsten Hopp 800193
  /**/
Karsten Hopp 800193
Karsten Hopp 800193
-- 
Karsten Hopp 800193
Some of the well known MS-Windows errors:
Karsten Hopp 800193
	EMEMORY		Memory error caused by..., eh...
Karsten Hopp 800193
	ELICENSE	Your license has expired, give us more money!
Karsten Hopp 800193
	EMOUSE		Mouse moved, reinstall Windows
Karsten Hopp 800193
	EILLEGAL	Illegal error, you are not allowed to see this
Karsten Hopp 800193
	EVIRUS		Undetectable virus found
Karsten Hopp 800193
Karsten Hopp 800193
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 800193
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 800193
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 800193
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///