8b9a1c
To: vim_dev@googlegroups.com
8b9a1c
Subject: Patch 7.4.146
8b9a1c
Fcc: outbox
8b9a1c
From: Bram Moolenaar <Bram@moolenaar.net>
8b9a1c
Mime-Version: 1.0
8b9a1c
Content-Type: text/plain; charset=UTF-8
8b9a1c
Content-Transfer-Encoding: 8bit
8b9a1c
------------
8b9a1c
8b9a1c
Patch 7.4.146
8b9a1c
Problem:    When starting Vim with "-u NONE" v:oldfiles is NULL.
8b9a1c
Solution:   Set v:oldfiles to an empty list. (Yasuhiro Matsumoto)
8b9a1c
Files:	    src/main.c
8b9a1c
8b9a1c
8b9a1c
*** ../vim-7.4.145/src/main.c	2013-09-29 16:27:42.000000000 +0200
8b9a1c
--- src/main.c	2014-01-14 12:53:28.000000000 +0100
8b9a1c
***************
8b9a1c
*** 702,707 ****
8b9a1c
--- 702,712 ----
8b9a1c
  	TIME_MSG("reading viminfo");
8b9a1c
      }
8b9a1c
  #endif
8b9a1c
+ #ifdef FEAT_EVAL
8b9a1c
+     /* It's better to make v:oldfiles an empty list than NULL. */
8b9a1c
+     if (get_vim_var_list(VV_OLDFILES) == NULL)
8b9a1c
+ 	set_vim_var_list(VV_OLDFILES, list_alloc());
8b9a1c
+ #endif
8b9a1c
  
8b9a1c
  #ifdef FEAT_QUICKFIX
8b9a1c
      /*
8b9a1c
***************
8b9a1c
*** 1048,1054 ****
8b9a1c
      /* Setup to catch a terminating error from the X server.  Just ignore
8b9a1c
       * it, restore the state and continue.  This might not always work
8b9a1c
       * properly, but at least we don't exit unexpectedly when the X server
8b9a1c
!      * exists while Vim is running in a console. */
8b9a1c
      if (!cmdwin && !noexmode && SETJMP(x_jump_env))
8b9a1c
      {
8b9a1c
  	State = NORMAL;
8b9a1c
--- 1053,1059 ----
8b9a1c
      /* Setup to catch a terminating error from the X server.  Just ignore
8b9a1c
       * it, restore the state and continue.  This might not always work
8b9a1c
       * properly, but at least we don't exit unexpectedly when the X server
8b9a1c
!      * exits while Vim is running in a console. */
8b9a1c
      if (!cmdwin && !noexmode && SETJMP(x_jump_env))
8b9a1c
      {
8b9a1c
  	State = NORMAL;
8b9a1c
*** ../vim-7.4.145/src/version.c	2014-01-14 12:33:32.000000000 +0100
8b9a1c
--- src/version.c	2014-01-14 12:56:08.000000000 +0100
8b9a1c
***************
8b9a1c
*** 740,741 ****
8b9a1c
--- 740,743 ----
8b9a1c
  {   /* Add new patch number below this line */
8b9a1c
+ /**/
8b9a1c
+     146,
8b9a1c
  /**/
8b9a1c
8b9a1c
-- 
8b9a1c
hundred-and-one symptoms of being an internet addict:
8b9a1c
152. You find yourself falling for someone you've never seen or hardly
8b9a1c
     know, but, boy can he/she TYPE!!!!!!
8b9a1c
8b9a1c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
8b9a1c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
8b9a1c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
8b9a1c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///