]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1442: tests: Test_diff_fold_redraw() is insufficient v9.1.1442
authorGary Johnson <garyjohn@spocom.com>
Mon, 9 Jun 2025 18:19:35 +0000 (20:19 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 9 Jun 2025 18:19:35 +0000 (20:19 +0200)
commit69565e3618209001eeeb6a35f14a19d47aaaa8f8
tree122dd900d237c1f89c30c0946f366ff67bb2e6c5
parent09a62e6f64887106e65e3afa45c4355e0899bc39
patch 9.1.1442: tests: Test_diff_fold_redraw() is insufficient

Problem:  tests: Test_diff_fold_redraw() is insufficient
          (after v9.1.1439, Christ van Willegen)
Solution: improve the test (Gary Johnson)

The original Test_diff_fold_redraw() function, added 2025-06-08 at patch
9.1.1439, had a bug and didn't do a very good job of testing the fold
behavior.  This new version is simpler and more thorough.

The bug was that it checked the fold state of one window twice instead
of checking both windows.

closes: #17492

Signed-off-by: Gary Johnson <garyjohn@spocom.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_diffmode.vim
src/version.c