To: vim_dev@googlegroups.com Subject: Patch 7.4a.028 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4a.028 Problem: Crash when spell checking in new buffer. Solution: Set the b_p_key field. (Mike Williams) Files: src/spell.c, src/testdir/test58.in *** ../vim-7.4a.027/src/spell.c 2013-06-08 16:10:52.000000000 +0200 --- src/spell.c 2013-07-17 17:28:28.000000000 +0200 *************** *** 9054,9059 **** --- 9054,9062 ---- { 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 */ } *** ../vim-7.4a.027/src/testdir/test58.in 2010-05-15 13:04:10.000000000 +0200 --- src/testdir/test58.in 2013-07-17 17:27:42.000000000 +0200 *************** *** 7,12 **** --- 7,16 ---- :set enc=latin1 :e! :" + :" Check using z= in new buffer (crash fixed by patch 7.4a.028). + :set maxmem=512 spell + iasdz=:" + :" :" Function to test .aff/.dic with list of good and bad words. :func TestOne(aff, dic) set spellfile= *** ../vim-7.4a.027/src/version.c 2013-07-17 17:15:21.000000000 +0200 --- src/version.c 2013-07-17 17:29:24.000000000 +0200 *************** *** 729,730 **** --- 729,732 ---- { /* Add new patch number below this line */ + /**/ + 28, /**/ -- An alien life briefly visits earth. Just before departing it leaves a message in the dust on the back of a white van. The world is shocked and wants to know what it means. After months of studies the worlds best linguistic scientists are able to decipher the message: "Wash me!". /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///