99b86a7
To: vim-dev@vim.org
99b86a7
Subject: patch 7.1.131
99b86a7
Fcc: outbox
99b86a7
From: Bram Moolenaar <Bram@moolenaar.net>
99b86a7
Mime-Version: 1.0
99b86a7
Content-Type: text/plain; charset=ISO-8859-1
99b86a7
Content-Transfer-Encoding: 8bit
99b86a7
------------
99b86a7
99b86a7
Patch 7.1.131
99b86a7
Problem:    ":mksession" always adds ":setlocal autoread". (Christian J.
99b86a7
	    Robinson)
99b86a7
Solution:   Skip boolean global/local option using global value.
99b86a7
Files:	    src/option.c
99b86a7
99b86a7
99b86a7
*** ../vim-7.1.130/src/option.c	Wed Sep 26 22:35:06 2007
99b86a7
--- src/option.c	Sun Sep 30 16:21:08 2007
99b86a7
***************
99b86a7
*** 8753,8758 ****
99b86a7
--- 8753,8760 ----
99b86a7
      char	*name;
99b86a7
      int		value;
99b86a7
  {
99b86a7
+     if (value < 0)	/* global/local option using global value */
99b86a7
+ 	return OK;
99b86a7
      if (fprintf(fd, "%s %s%s", cmd, value ? "" : "no", name) < 0
99b86a7
  	    || put_eol(fd) < 0)
99b86a7
  	return FAIL;
99b86a7
*** ../vim-7.1.130/src/version.c	Mon Oct  1 22:53:27 2007
99b86a7
--- src/version.c	Tue Oct  2 20:39:02 2007
99b86a7
***************
99b86a7
*** 668,669 ****
99b86a7
--- 668,671 ----
99b86a7
  {   /* Add new patch number below this line */
99b86a7
+ /**/
99b86a7
+     131,
99b86a7
  /**/
99b86a7
99b86a7
-- 
99b86a7
ARTHUR: Old woman!
99b86a7
DENNIS: Man!
99b86a7
ARTHUR: Man.  I'm sorry.  Old man, What knight live in that castle over there?
99b86a7
DENNIS: I'm thirty-seven.
99b86a7
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
99b86a7
99b86a7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
99b86a7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
99b86a7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
99b86a7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///