diff src/spell.c @ 5204:7aca84c0cd37 v7.4a.028

updated for version 7.4a.028 Problem: Crash when spell checking in new buffer. Solution: Set the b_p_key field. (Mike Williams)
author Bram Moolenaar <bram@vim.org>
date Wed, 17 Jul 2013 17:35:13 +0200
parents 66803af09906
children 6daa78b6b99a
line wrap: on
line diff
--- 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 */
     }