3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.146
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.146
3ef2ca
Problem:    When starting Vim with "-u NONE" v:oldfiles is NULL.
3ef2ca
Solution:   Set v:oldfiles to an empty list. (Yasuhiro Matsumoto)
3ef2ca
Files:	    src/main.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.145/src/main.c	2013-09-29 16:27:42.000000000 +0200
3ef2ca
--- src/main.c	2014-01-14 12:53:28.000000000 +0100
3ef2ca
***************
3ef2ca
*** 702,707 ****
3ef2ca
--- 702,712 ----
3ef2ca
  	TIME_MSG("reading viminfo");
3ef2ca
      }
3ef2ca
  #endif
3ef2ca
+ #ifdef FEAT_EVAL
3ef2ca
+     /* It's better to make v:oldfiles an empty list than NULL. */
3ef2ca
+     if (get_vim_var_list(VV_OLDFILES) == NULL)
3ef2ca
+ 	set_vim_var_list(VV_OLDFILES, list_alloc());
3ef2ca
+ #endif
3ef2ca
  
3ef2ca
  #ifdef FEAT_QUICKFIX
3ef2ca
      /*
3ef2ca
***************
3ef2ca
*** 1048,1054 ****
3ef2ca
      /* Setup to catch a terminating error from the X server.  Just ignore
3ef2ca
       * it, restore the state and continue.  This might not always work
3ef2ca
       * properly, but at least we don't exit unexpectedly when the X server
3ef2ca
!      * exists while Vim is running in a console. */
3ef2ca
      if (!cmdwin && !noexmode && SETJMP(x_jump_env))
3ef2ca
      {
3ef2ca
  	State = NORMAL;
3ef2ca
--- 1053,1059 ----
3ef2ca
      /* Setup to catch a terminating error from the X server.  Just ignore
3ef2ca
       * it, restore the state and continue.  This might not always work
3ef2ca
       * properly, but at least we don't exit unexpectedly when the X server
3ef2ca
!      * exits while Vim is running in a console. */
3ef2ca
      if (!cmdwin && !noexmode && SETJMP(x_jump_env))
3ef2ca
      {
3ef2ca
  	State = NORMAL;
3ef2ca
*** ../vim-7.4.145/src/version.c	2014-01-14 12:33:32.000000000 +0100
3ef2ca
--- src/version.c	2014-01-14 12:56:08.000000000 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     146,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
hundred-and-one symptoms of being an internet addict:
3ef2ca
152. You find yourself falling for someone you've never seen or hardly
3ef2ca
     know, but, boy can he/she TYPE!!!!!!
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    ///