diff options
author | K.Takata <kentkt@csc.jp> | 2022-07-14 17:25:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-14 17:25:14 +0100 |
commit | 2ebcc35826bc2deb04e5fc6d73332f55783e7f52 (patch) | |
tree | ed74fb14bfee6ec533d72ddd532f57bbf5109ed3 /src/testdir/test_spell.vim | |
parent | f754fe6a3d5384b5146c38a32db6da9d46e00c40 (diff) |
patch 9.0.0052: "zG" may throw an error if invalid character followsv9.0.0052
Problem: "zG" may throw an error if invalid character follows.
Solution: Pass the word length to valid_spell_word(). (Ken Takata,
closes #10737)
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r-- | src/testdir/test_spell.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index a291eb5c7a..94ea3d7fe2 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -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= |