diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-25 20:11:13 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-25 20:48:21 +0800 |
commit | e4079f3b5a62a0a3888d4e824e8c39a7d171c5b4 (patch) | |
tree | fc77f296b3388a6730e37a068989620a91906678 | |
parent | 771564b00e5b64ac74be443dde84e160bc7fce05 (diff) | |
download | rneovim-e4079f3b5a62a0a3888d4e824e8c39a7d171c5b4.tar.gz rneovim-e4079f3b5a62a0a3888d4e824e8c39a7d171c5b4.tar.bz2 rneovim-e4079f3b5a62a0a3888d4e824e8c39a7d171c5b4.zip |
vim-patch:8.2.5166: test for DiffUpdated fails
Problem: Test for DiffUpdated fails.
Solution: Also accept a count of two.
https://github.com/vim/vim/commit/f65cc665fa751bad3ffe75f58ce1251d6695949f
-rw-r--r-- | src/nvim/testdir/test_diffmode.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_diffmode.vim b/src/nvim/testdir/test_diffmode.vim index 3eabad28d0..bc931b1e1b 100644 --- a/src/nvim/testdir/test_diffmode.vim +++ b/src/nvim/testdir/test_diffmode.vim @@ -33,7 +33,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 |