Skip to content

Commit

Permalink
updated for version 7.4.146
Browse files Browse the repository at this point in the history
Problem:    When starting Vim with "-u NONE" v:oldfiles is NULL.
Solution:   Set v:oldfiles to an empty list. (Yasuhiro Matsumoto)
  • Loading branch information
brammool committed Jan 14, 2014
1 parent 32b9201 commit 2cd3696
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.c
Expand Up @@ -702,6 +702,11 @@ vim_main2(int argc UNUSED, char **argv UNUSED)
TIME_MSG("reading viminfo");
}
#endif
#ifdef FEAT_EVAL
/* It's better to make v:oldfiles an empty list than NULL. */
if (get_vim_var_list(VV_OLDFILES) == NULL)
set_vim_var_list(VV_OLDFILES, list_alloc());
#endif

#ifdef FEAT_QUICKFIX
/*
Expand Down Expand Up @@ -1048,7 +1053,7 @@ main_loop(cmdwin, noexmode)
/* Setup to catch a terminating error from the X server. Just ignore
* it, restore the state and continue. This might not always work
* properly, but at least we don't exit unexpectedly when the X server
* exists while Vim is running in a console. */
* exits while Vim is running in a console. */
if (!cmdwin && !noexmode && SETJMP(x_jump_env))
{
State = NORMAL;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -738,6 +738,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
146,
/**/
145,
/**/
Expand Down

0 comments on commit 2cd3696

Please sign in to comment.