From f65cc665fa751bad3ffe75f58ce1251d6695949f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 26 Jun 2022 18:17:50 +0100 Subject: [PATCH] patch 8.2.5166: test for DiffUpdated fails Problem: Test for DiffUpdated fails. Solution: Also accept a count of two. --- src/testdir/test_diffmode.vim | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/testdir/test_diffmode.vim b/src/testdir/test_diffmode.vim index 4c7aff5cc..dcacd5516 100644 --- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -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 diff --git a/src/version.c b/src/version.c index 8e396cd17..3422e7aaf 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 5166, /**/ 5165, /**/ -- 2.40.0