comparison src/option.c @ 3384:da670fb71d30 v7.3.458

updated for version 7.3.458 Problem: Crash when calling smsg() during startup. Solution: Don't use 'shortmess' when it is not set yet.
author Bram Moolenaar <bram@vim.org>
date Wed, 29 Feb 2012 13:51:37 +0100
parents 20ca2e05ae20
children 3db4282d5e6b
comparison
equal deleted inserted replaced
3383:6b02d47d3a33 3384:da670fb71d30
10982 */ 10982 */
10983 int 10983 int
10984 shortmess(x) 10984 shortmess(x)
10985 int x; 10985 int x;
10986 { 10986 {
10987 return ( vim_strchr(p_shm, x) != NULL 10987 return p_shm != NULL &&
10988 ( vim_strchr(p_shm, x) != NULL
10988 || (vim_strchr(p_shm, 'a') != NULL 10989 || (vim_strchr(p_shm, 'a') != NULL
10989 && vim_strchr((char_u *)SHM_A, x) != NULL)); 10990 && vim_strchr((char_u *)SHM_A, x) != NULL));
10990 } 10991 }
10991 10992
10992 /* 10993 /*