commit | 706d2de9c1e0567a9865c6c535fb7feebf475fd8 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jul 17 17:35:13 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jul 17 17:35:13 2013 +0200 |
tree | d4f5eb2a39cabcfee04599af7637bba524f74445 | |
parent | 95064ece73a72fce696607ccc8896bc9e52af718 [diff] [blame] |
updated for version 7.4a.028 Problem: Crash when spell checking in new buffer. Solution: Set the b_p_key field. (Mike Williams)
diff --git a/src/spell.c b/src/spell.c index e558a99..20344f2 100644 --- a/src/spell.c +++ b/src/spell.c
@@ -9054,6 +9054,9 @@ { 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 */ }