From 9f140581e08b255697a4d824ac57559a04c416e0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 6 Feb 2011 20:37:35 +0100 Subject: misc updates Signed-off-by: Florian Pritz --- vim/vim-7.2/7.2.332 | 101 ---------------------------------------------------- 1 file changed, 101 deletions(-) delete mode 100644 vim/vim-7.2/7.2.332 (limited to 'vim/vim-7.2/7.2.332') diff --git a/vim/vim-7.2/7.2.332 b/vim/vim-7.2/7.2.332 deleted file mode 100644 index 7956d1e..0000000 --- a/vim/vim-7.2/7.2.332 +++ /dev/null @@ -1,101 +0,0 @@ -To: vim-dev@vim.org -Subject: Patch 7.2.332 -Fcc: outbox -From: Bram Moolenaar -Mime-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit ------------- - -Patch 7.2.332 -Problem: Crash when spell correcting triggers an autocommand that reloads - the buffer. -Solution: Make a copy of the line to be modified. (Dominique Pelle) -Files: src/spell.c - - -*** ../vim-7.2.331/src/spell.c 2009-07-22 11:03:38.000000000 +0200 ---- src/spell.c 2010-01-19 12:44:42.000000000 +0100 -*************** -*** 10306,10312 **** - /* Figure out if the word should be capitalised. */ - need_cap = check_need_cap(curwin->w_cursor.lnum, curwin->w_cursor.col); - -! line = ml_get_curline(); - - /* Get the list of suggestions. Limit to 'lines' - 2 or the number in - * 'spellsuggest', whatever is smaller. */ ---- 10306,10315 ---- - /* Figure out if the word should be capitalised. */ - need_cap = check_need_cap(curwin->w_cursor.lnum, curwin->w_cursor.col); - -! /* Make a copy of current line since autocommands may free the line. */ -! line = vim_strsave(ml_get_curline()); -! if (line == NULL) -! goto skip; - - /* Get the list of suggestions. Limit to 'lines' - 2 or the number in - * 'spellsuggest', whatever is smaller. */ -*************** -*** 10470,10475 **** ---- 10473,10480 ---- - curwin->w_cursor = prev_cursor; - - spell_find_cleanup(&sug); -+ skip: -+ vim_free(line); - } - - /* -*************** -*** 10931,10937 **** - rescore_suggestions(su); - - /* -! * While going throught the soundfold tree "su_maxscore" is the score - * for the soundfold word, limits the changes that are being tried, - * and "su_sfmaxscore" the rescored score, which is set by - * cleanup_suggestions(). ---- 10936,10942 ---- - rescore_suggestions(su); - - /* -! * While going through the soundfold tree "su_maxscore" is the score - * for the soundfold word, limits the changes that are being tried, - * and "su_sfmaxscore" the rescored score, which is set by - * cleanup_suggestions(). -*************** -*** 11415,11421 **** - char_u tword[MAXWLEN]; /* good word collected so far */ - trystate_T stack[MAXWLEN]; - char_u preword[MAXWLEN * 3]; /* word found with proper case; -! * concatanation of prefix compound - * words and split word. NUL terminated - * when going deeper but not when coming - * back. */ ---- 11420,11426 ---- - char_u tword[MAXWLEN]; /* good word collected so far */ - trystate_T stack[MAXWLEN]; - char_u preword[MAXWLEN * 3]; /* word found with proper case; -! * concatenation of prefix compound - * words and split word. NUL terminated - * when going deeper but not when coming - * back. */ -*** ../vim-7.2.331/src/version.c 2010-01-19 12:46:51.000000000 +0100 ---- src/version.c 2010-01-19 13:05:32.000000000 +0100 -*************** -*** 683,684 **** ---- 683,686 ---- - { /* Add new patch number below this line */ -+ /**/ -+ 332, - /**/ - --- -hundred-and-one symptoms of being an internet addict: -117. You are more comfortable typing in html. - - /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ -/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ -\\\ download, build and distribute -- http://www.A-A-P.org /// - \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- cgit v1.2.3-24-g4f1b