Mercurial > vim
comparison src/testdir/test_spell.vim @ 29421:61796d98c856 v9.0.0052
patch 9.0.0052: "zG" may throw an error if invalid character follows
Commit: https://github.com/vim/vim/commit/2ebcc35826bc2deb04e5fc6d73332f55783e7f52
Author: K.Takata <kentkt@csc.jp>
Date: Thu Jul 14 17:25:14 2022 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Jul 2022 18:30:04 +0200 |
parents | 5b7b5b372e2d |
children | addac7a2d951 |
comparison
equal
deleted
inserted
replaced
29420:7268e2e2e45b | 29421:61796d98c856 |
---|---|
878 norm o0 | 878 norm o0 |
879 sil! norm rzzWs00/ | 879 sil! norm rzzWs00/ |
880 2 | 880 2 |
881 sil! norm VzGprzzW | 881 sil! norm VzGprzzW |
882 sil! norm z= | 882 sil! norm z= |
883 | |
884 bwipe! | |
885 endfunc | |
886 | |
887 func Test_spell_good_word_slash() | |
888 " This caused E1280. | |
889 new | |
890 norm afoo / | |
891 1 | |
892 norm zG | |
883 | 893 |
884 bwipe! | 894 bwipe! |
885 endfunc | 895 endfunc |
886 | 896 |
887 func LoadAffAndDic(aff_contents, dic_contents) | 897 func LoadAffAndDic(aff_contents, dic_contents) |