From 7f29f7a2f47160acef0477770d3cebf1357470a8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 29 Feb 2012 13:51:37 +0100 Subject: updated for version 7.3.458 Problem: Crash when calling smsg() during startup. Solution: Don't use 'shortmess' when it is not set yet. --- src/option.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/option.c') diff --git a/src/option.c b/src/option.c index 0cea5586a8..b71830f743 100644 --- a/src/option.c +++ b/src/option.c @@ -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)); } -- cgit v1.2.3