1
0
forked from aniani/vim

patch 9.0.0052: "zG" may throw an error if invalid character follows

Problem:    "zG" may throw an error if invalid character follows.
Solution:   Pass the word length to valid_spell_word(). (Ken Takata,
            closes #10737)
This commit is contained in:
K.Takata
2022-07-14 17:25:14 +01:00
committed by Bram Moolenaar
parent f754fe6a3d
commit 2ebcc35826
3 changed files with 17 additions and 5 deletions

View File

@@ -884,6 +884,16 @@ func Test_spell_good_word_invalid()
bwipe!
endfunc
func Test_spell_good_word_slash()
" This caused E1280.
new
norm afoo /
1
norm zG
bwipe!
endfunc
func LoadAffAndDic(aff_contents, dic_contents)
set enc=latin1
set spellfile=