| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.458 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.458 |
| Problem: Crash when calling smsg() during startup. |
| Solution: Don't use 'shortmess' when it is not set yet. |
| Files: src/option.c |
| |
| |
| |
| |
| |
| *** 10984,10990 **** |
| shortmess(x) |
| int x; |
| { |
| ! return ( vim_strchr(p_shm, x) != NULL |
| || (vim_strchr(p_shm, 'a') != NULL |
| && vim_strchr((char_u *)SHM_A, x) != NULL)); |
| } |
| --- 10984,10991 ---- |
| shortmess(x) |
| int x; |
| { |
| ! return p_shm != NULL && |
| ! ( vim_strchr(p_shm, x) != NULL |
| || (vim_strchr(p_shm, 'a') != NULL |
| && vim_strchr((char_u *)SHM_A, x) != NULL)); |
| } |
| |
| |
| |
| *** 716,717 **** |
| --- 716,719 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 458, |
| /**/ |
| |
| -- |
| Support your right to bare arms! Wear short sleeves! |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |