0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

updated for version 7.3.458

Problem:    Crash when calling smsg() during startup.
Solution:   Don't use 'shortmess' when it is not set yet.
This commit is contained in:
Bram Moolenaar
2012-02-29 13:51:37 +01:00
parent 011a34d77d
commit 7f29f7a2f4
2 changed files with 4 additions and 1 deletions

View File

@@ -10984,7 +10984,8 @@ has_format_option(x)
shortmess(x)
int x;
{
return ( vim_strchr(p_shm, x) != NULL
return p_shm != NULL &&
( vim_strchr(p_shm, x) != NULL
|| (vim_strchr(p_shm, 'a') != NULL
&& vim_strchr((char_u *)SHM_A, x) != NULL));
}

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
458,
/**/
457,
/**/