diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-31 05:48:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-31 05:48:24 +0800 |
| commit | 9511faa819e8260aa7ae2c2ff140070bbc96efa9 (patch) | |
| tree | 259a5f4da6552378eabe6ad9cfba7bce2ea1d7ee /src/nvim/testdir/test_spell_utf8.vim | |
| parent | fc5ed5b6725122cfe45d048f6e00996a9729ebc1 (diff) | |
| download | rneovim-9511faa819e8260aa7ae2c2ff140070bbc96efa9.tar.gz rneovim-9511faa819e8260aa7ae2c2ff140070bbc96efa9.tar.bz2 rneovim-9511faa819e8260aa7ae2c2ff140070bbc96efa9.zip | |
vim-patch:9.0.0109: writing over the end of a buffer on stack (#19581)
Problem: Writing over the end of a buffer on stack when making list of
spell suggestions.
Solution: Make sure suggested word is not too long. (closes vim/vim#10812)
https://github.com/vim/vim/commit/1eead4cf1daf87ee41aeb4de3b3e38708417f9d5
Diffstat (limited to 'src/nvim/testdir/test_spell_utf8.vim')
| -rw-r--r-- | src/nvim/testdir/test_spell_utf8.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spell_utf8.vim b/src/nvim/testdir/test_spell_utf8.vim index b7e3da37cb..7c588d736a 100644 --- a/src/nvim/testdir/test_spell_utf8.vim +++ b/src/nvim/testdir/test_spell_utf8.vim @@ -820,5 +820,13 @@ func Test_check_empty_line() bwipe! endfunc +func Test_spell_suggest_too_long() + " this was creating a word longer than MAXWLEN + new + call setline(1, 'a' .. repeat("\u0333", 150)) + norm! z= + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |