diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-05-12 23:48:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-12 23:48:58 +0800 |
| commit | de5ccf2348a1fabf3867da9256e4740a7dfcf004 (patch) | |
| tree | 5be2509a126d1f0894f2a31e3d7f4833d8854b50 /src/nvim/testdir | |
| parent | 0c8e48c78dc1088547f1586267b75d5b9754d687 (diff) | |
| parent | 8c0510af713d7caf02f35ff55bb75b9f8f042d6d (diff) | |
| download | rneovim-de5ccf2348a1fabf3867da9256e4740a7dfcf004.tar.gz rneovim-de5ccf2348a1fabf3867da9256e4740a7dfcf004.tar.bz2 rneovim-de5ccf2348a1fabf3867da9256e4740a7dfcf004.zip | |
Merge pull request #18540 from zeertzjq/vim-8.2.4919
vim-patch:8.2.{4919,4921}: can add invalid bytes with :spellgood
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_spell.vim | 8 | ||||
| -rw-r--r-- | src/nvim/testdir/test_spell_utf8.vim | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim index 56ed97cdd9..ce21b8bdc9 100644 --- a/src/nvim/testdir/test_spell.vim +++ b/src/nvim/testdir/test_spell.vim @@ -776,14 +776,6 @@ func Test_spell_screendump() call delete('XtestSpell') endfunc -func Test_spell_single_word() - new - silent! norm 0R00 - spell! ß - silent 0norm 0r$ Dvz= - bwipe! -endfunc - let g:test_data_aff1 = [ \"SET ISO8859-1", \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ", diff --git a/src/nvim/testdir/test_spell_utf8.vim b/src/nvim/testdir/test_spell_utf8.vim index 3d159f3352..1d323df67e 100644 --- a/src/nvim/testdir/test_spell_utf8.vim +++ b/src/nvim/testdir/test_spell_utf8.vim @@ -768,4 +768,10 @@ func Test_spellfile_value() set spellfile=Xdir/Xtest.utf-8.add,Xtest_other.add endfunc +" Invalid bytes may cause trouble when creating the word list. +func Test_check_for_valid_word() + call assert_fails("spellgood! 0\xac", 'E1280:') +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |