diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 08:42:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-15 08:42:36 +0800 |
| commit | 072fb55cb04c03e0ec2d7378ee845d8fd96b2697 (patch) | |
| tree | d279a982ba72838da0d1344d70f082fff6bcc06b /src/nvim/testdir | |
| parent | 75ad050919b1d27f90b5e6332b9d446529c7cb31 (diff) | |
| download | rneovim-072fb55cb04c03e0ec2d7378ee845d8fd96b2697.tar.gz rneovim-072fb55cb04c03e0ec2d7378ee845d8fd96b2697.tar.bz2 rneovim-072fb55cb04c03e0ec2d7378ee845d8fd96b2697.zip | |
vim-patch:9.0.0052: "zG" may throw an error if invalid character follows (#19368)
Problem: "zG" may throw an error if invalid character follows.
Solution: Pass the word length to valid_spell_word(). (Ken Takata,
closes vim/vim#10737)
https://github.com/vim/vim/commit/2ebcc35826bc2deb04e5fc6d73332f55783e7f52
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_spell.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim index 58f0760f48..7744c5bcca 100644 --- a/src/nvim/testdir/test_spell.vim +++ b/src/nvim/testdir/test_spell.vim @@ -827,6 +827,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) throw 'skipped: Nvim does not support enc=latin1' set enc=latin1 |