Skip to content

Commit f65cc66

Browse files
committed
patch 8.2.5166: test for DiffUpdated fails
Problem: Test for DiffUpdated fails. Solution: Also accept a count of two.
1 parent 5076187 commit f65cc66

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/testdir/test_diffmode.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ func Test_diff_fold_sync()
3434
call win_gotoid(winone)
3535
call assert_equal(23, getcurpos()[1])
3636

37-
call assert_equal(1, g:update_count)
37+
" depending on how redraw is done DiffUpdated may be triggered once or twice
38+
call assert_inrange(1, 2, g:update_count)
3839
au! DiffUpdated
3940

4041
windo diffoff

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,8 @@ static char *(features[]) =
735735

736736
static int included_patches[] =
737737
{ /* Add new patch number below this line */
738+
/**/
739+
5166,
738740
/**/
739741
5165,
740742
/**/

0 commit comments

Comments
 (0)