diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-07-17 17:35:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-07-17 17:35:13 +0200 |
commit | 706d2de9c1e0567a9865c6c535fb7feebf475fd8 (patch) | |
tree | d4f5eb2a39cabcfee04599af7637bba524f74445 /src/spell.c | |
parent | 95064ece73a72fce696607ccc8896bc9e52af718 (diff) | |
download | vim-git-706d2de9c1e0567a9865c6c535fb7feebf475fd8.tar.gz |
updated for version 7.4a.028v7.4a.028
Problem: Crash when spell checking in new buffer.
Solution: Set the b_p_key field. (Mike Williams)
Diffstat (limited to 'src/spell.c')
-rw-r--r-- | src/spell.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/spell.c b/src/spell.c index e558a99e4..20344f25f 100644 --- a/src/spell.c +++ b/src/spell.c @@ -9054,6 +9054,9 @@ open_spellbuf() { buf->b_spell = TRUE; buf->b_p_swf = TRUE; /* may create a swap file */ +#ifdef FEAT_CRYPT + buf->b_p_key = empty_option; +#endif ml_open(buf); ml_open_file(buf); /* create swap file now */ } |