]> granicus.if.org Git - vim/commitdiff
patch 8.2.5166: test for DiffUpdated fails v8.2.5166
authorBram Moolenaar <Bram@vim.org>
Sun, 26 Jun 2022 17:17:50 +0000 (18:17 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 26 Jun 2022 17:17:50 +0000 (18:17 +0100)
Problem:    Test for DiffUpdated fails.
Solution:   Also accept a count of two.

src/testdir/test_diffmode.vim
src/version.c

index 4c7aff5ccb6e3ef4f002f99633082e15ed98ef52..dcacd5516bb7dff0f3b839d56834a6721ecd8b6e 100644 (file)
@@ -34,7 +34,8 @@ func Test_diff_fold_sync()
   call win_gotoid(winone)
   call assert_equal(23, getcurpos()[1])
 
-  call assert_equal(1, g:update_count)
+  " depending on how redraw is done DiffUpdated may be triggered once or twice
+  call assert_inrange(1, 2, g:update_count)
   au! DiffUpdated
 
   windo diffoff
index 8e396cd17cc3e71512f043191ef1804a3bf628f2..3422e7aaf87f634319a55a6d6994222133d867e5 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5166,
 /**/
     5165,
 /**/