aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-12 22:59:09 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-05-12 23:07:35 +0800
commit274f260806efe0008cde0fd1c3bc64e7655eb89f (patch)
treebf105c808694a6bbba6a866d95cab3780c994b30 /src/nvim/testdir
parent8fba428bc6f36ae038a9286517e15b33257a1359 (diff)
downloadrneovim-274f260806efe0008cde0fd1c3bc64e7655eb89f.tar.gz
rneovim-274f260806efe0008cde0fd1c3bc64e7655eb89f.tar.bz2
rneovim-274f260806efe0008cde0fd1c3bc64e7655eb89f.zip
vim-patch:8.2.4919: can add invalid bytes with :spellgood
Problem: Can add invalid bytes with :spellgood. Solution: Check for a valid word string. https://github.com/vim/vim/commit/7c824682d2028432ee082703ef0ab399867a089b
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_spell_utf8.vim6
1 files changed, 6 insertions, 0 deletions
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