diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-04 11:11:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 11:11:37 +0800 |
commit | db13f105d62e868997e61d8cef921fbebb312ddc (patch) | |
tree | 5d860ba78b78cf27fb542cb253614a83b8b5d87b /src/nvim/testdir | |
parent | a973fa5b4397933e94d888d06e435a986fc4a218 (diff) | |
parent | 683648a396a804a8d54731283d525f0c34193361 (diff) | |
download | rneovim-db13f105d62e868997e61d8cef921fbebb312ddc.tar.gz rneovim-db13f105d62e868997e61d8cef921fbebb312ddc.tar.bz2 rneovim-db13f105d62e868997e61d8cef921fbebb312ddc.zip |
Merge pull request #17988 from zeertzjq/vim-8.2.4247
vim-patch:8.2.{4247,4258}: stack corruption when looking for spell suggestions
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_spell.vim | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim index 1ecb5c8070..56ed97cdd9 100644 --- a/src/nvim/testdir/test_spell.vim +++ b/src/nvim/testdir/test_spell.vim @@ -407,7 +407,7 @@ func Test_zz_basic() \ ) call assert_equal("gebletegek", soundfold('goobledygoook')) - call assert_equal("kepereneven", 'kóopërÿnôven'->soundfold()) + call assert_equal("kepereneven", 'kóopërÿnôven'->soundfold()) call assert_equal("everles gesvets etele", soundfold('oeverloos gezwets edale')) endfunc @@ -588,7 +588,7 @@ func Test_zz_sal_and_addition() mkspell! Xtest Xtest set spl=Xtest.latin1.spl spell call assert_equal('kbltykk', soundfold('goobledygoook')) - call assert_equal('kprnfn', soundfold('kóopërÿnôven')) + call assert_equal('kprnfn', soundfold('kóopërÿnôven')) call assert_equal('*fls kswts tl', soundfold('oeverloos gezwets edale')) "also use an addition file @@ -681,6 +681,14 @@ func Test_spell_long_word() set nospell endfunc +func Test_spellsuggest_too_deep() + " This was incrementing "depth" over MAXWLEN. + new + norm s000G00ý000000000000 + sil norm ..vzG................vvzG0 v z= + bwipe! +endfunc + func LoadAffAndDic(aff_contents, dic_contents) throw 'skipped: Nvim does not support enc=latin1' set enc=latin1 |