diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-10-06 13:41:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-06 13:41:07 +0100 |
commit | e275ba4fc994474155fbafe8b87a6d3b477456ba (patch) | |
tree | 6d474169be70959a09da92686e061901455691ba /src/testdir | |
parent | e2982d691186c8a9b16ecc8d831d2472088c8ed8 (diff) | |
download | vim-git-e275ba4fc994474155fbafe8b87a6d3b477456ba.tar.gz |
patch 8.2.3484: crash when going through spell suggestionsv8.2.3484
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)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_spell_utf8.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test_spell_utf8.vim b/src/testdir/test_spell_utf8.vim index 1f561e46a..79dc3e4a4 100644 --- a/src/testdir/test_spell_utf8.vim +++ b/src/testdir/test_spell_utf8.vim @@ -765,4 +765,20 @@ func Test_spellfile_value() set spellfile=Xdir/Xtest.utf-8.add,Xtest_other.add endfunc +func Test_no_crash_with_weird_text() + new + let lines =<< trim END + r<sfile> + + + + + END + call setline(1, lines) + exe "%norm \<C-v>ez=>\<C-v>wzG" + + bwipe! +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |