Mercurial > vim
comparison src/testdir/test_spell_utf8.vim @ 25901:f48c435bd1df v8.2.3484
patch 8.2.3484: crash when going through spell suggestions
Commit: https://github.com/vim/vim/commit/e275ba4fc994474155fbafe8b87a6d3b477456ba
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 6 13:41:07 2021 +0100
patch 8.2.3484: crash when going through spell suggestions
Problem: Crash when going through spell suggestions.
Solution: Limit the text length for finding suggestions to the original
length. Do not update buffers when exiting. (closes #8965)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 06 Oct 2021 14:45:03 +0200 |
parents | 24cb89db078d |
children | a161c262e947 |
comparison
equal
deleted
inserted
replaced
25900:b55afbf97a65 | 25901:f48c435bd1df |
---|---|
763 func Test_spellfile_value() | 763 func Test_spellfile_value() |
764 set spellfile=Xdir/Xtest.utf-8.add | 764 set spellfile=Xdir/Xtest.utf-8.add |
765 set spellfile=Xdir/Xtest.utf-8.add,Xtest_other.add | 765 set spellfile=Xdir/Xtest.utf-8.add,Xtest_other.add |
766 endfunc | 766 endfunc |
767 | 767 |
768 func Test_no_crash_with_weird_text() | |
769 new | |
770 let lines =<< trim END | |
771 r<sfile> | |
772 | |
773 | |
774 | |
775 | |
776 END | |
777 call setline(1, lines) | |
778 exe "%norm \<C-v>ez=>\<C-v>wzG" | |
779 | |
780 bwipe! | |
781 endfunc | |
782 | |
783 | |
768 " vim: shiftwidth=2 sts=2 expandtab | 784 " vim: shiftwidth=2 sts=2 expandtab |