commit d358856a0c78d73f9d850df5f722c5572014e90c parent 998a96803b32dada4da26d0dc7a636f99319f0e6 Author: zeertzjq <zeertzjq@outlook.com> Date: Sat, 2 Jul 2022 06:44:39 +0800 vim-patch:9.0.0022: spell test fails Problem: Spell test fails. Solution: Expect new error is given. https://github.com/vim/vim/commit/95afae6d1760b2efcc4968dbd3784799d24e9fdf Diffstat:
| M | src/nvim/testdir/test_spell_utf8.vim | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/nvim/testdir/test_spell_utf8.vim b/src/nvim/testdir/test_spell_utf8.vim @@ -780,7 +780,12 @@ func Test_no_crash_with_weird_text() END call setline(1, lines) - exe "%norm \<C-v>ez=>\<C-v>wzG" + try + exe "%norm \<C-v>ez=>\<C-v>wzG" + catch /E1280:/ + let caught = 'yes' + endtry + call assert_equal('yes', caught) bwipe! endfunc