]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0022: spell test fails v9.0.0022
authorBram Moolenaar <Bram@vim.org>
Fri, 1 Jul 2022 21:44:19 +0000 (22:44 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 1 Jul 2022 21:44:19 +0000 (22:44 +0100)
Problem:    Spell test fails.
Solution:   Expect new error is given.

src/testdir/test_spell_utf8.vim
src/version.c

index fe8068959e2100d0febec83abdc385ede84e9044..c71308be563f9e6acd455bf913a86456e0f1bef4 100644 (file)
@@ -779,7 +779,12 @@ func Test_no_crash_with_weird_text()
       \80
   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
index 23798ee560bde1ef1fead1838a7a69996ccae256..dbd4951cc7f00194f857a8b8fd62fb7db1971f4e 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    22,
 /**/
     21,
 /**/