0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.4a.028

Problem:    Crash when spell checking in new buffer.
Solution:   Set the b_p_key field.  (Mike Williams)
This commit is contained in:
Bram Moolenaar
2013-07-17 17:35:13 +02:00
parent 95064ece73
commit 706d2de9c1
3 changed files with 9 additions and 0 deletions

View File

@@ -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 */
}