]> granicus.if.org Git - vim/commitdiff
updated for version 7.4a.028 v7.4a.028
authorBram Moolenaar <Bram@vim.org>
Wed, 17 Jul 2013 15:35:13 +0000 (17:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 17 Jul 2013 15:35:13 +0000 (17:35 +0200)
Problem:    Crash when spell checking in new buffer.
Solution:   Set the b_p_key field.  (Mike Williams)

src/spell.c
src/testdir/test58.in
src/version.c

index e558a99e4a2cd481664af2ae5d7c0f1ac347dcac..20344f25fedc01babebbead09598eb6db52898a9 100644 (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 */
     }
index 9600e83f817fd3d4a3c44940345366fa61f33458..cef1cfa1ba41655ac329bb5d97498d1a49ce5c5e 100644 (file)
@@ -7,6 +7,10 @@ STARTTEST
 :set enc=latin1
 :e!
 :"
+:" Check using z= in new buffer (crash fixed by patch 7.4a.028).
+:set maxmem=512 spell
+iasd\ez=:"
+:"
 :" Function to test .aff/.dic with list of good and bad words.
 :func TestOne(aff, dic)
   set spellfile=
index 64325c2aec5f4ad92d5ce7e953ce6709b21f7ee5..f0dd37119673dd1acbf1bcb7d71c88fef8dc4280 100644 (file)
@@ -727,6 +727,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    28,
 /**/
     27,
 /**/