jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.146

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