diff options
author | Christ van Willegen <cvwillegen@gmail.com> | 2023-08-12 20:17:26 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-12 20:17:26 +0200 |
commit | 73b8209266f0cd5c6d4df77b3700172d9c26df31 (patch) | |
tree | 6d613c66d35ff99a8f13677d61a80abe9a0a5207 | |
parent | 8878653a441764c0e234c5d7af99a2b3a823bb9b (diff) |
patch 9.0.1697: incsearch test not sufficientv9.0.1697
Problem: incsearch test not sufficient (after 9.0.1691)
Solution: add an additional test
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
-rw-r--r-- | src/testdir/dumps/Test_incsearch_restore_view_02.dump | 4 | ||||
-rw-r--r-- | src/testdir/dumps/Test_incsearch_restore_view_03.dump | 6 | ||||
-rw-r--r-- | src/testdir/test_search.vim | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
4 files changed, 13 insertions, 3 deletions
diff --git a/src/testdir/dumps/Test_incsearch_restore_view_02.dump b/src/testdir/dumps/Test_incsearch_restore_view_02.dump index 2a2c9a2b8b..c171639479 100644 --- a/src/testdir/dumps/Test_incsearch_restore_view_02.dump +++ b/src/testdir/dumps/Test_incsearch_restore_view_02.dump @@ -2,5 +2,5 @@ @20 @20 @20 -|x+1&&@2| +0&&@16 -|/|x@2> @15 +|x+1&&@1|x+0&&| @16 +|/|x@1> @16 diff --git a/src/testdir/dumps/Test_incsearch_restore_view_03.dump b/src/testdir/dumps/Test_incsearch_restore_view_03.dump new file mode 100644 index 0000000000..2a2c9a2b8b --- /dev/null +++ b/src/testdir/dumps/Test_incsearch_restore_view_03.dump @@ -0,0 +1,6 @@ +| +0&#ffffff0@19 +@20 +@20 +@20 +|x+1&&@2| +0&&@16 +|/|x@2> @15 diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim index f3bc6bff70..1a9f49bfee 100644 --- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -2094,8 +2094,10 @@ func Test_incsearch_restore_view() let buf = RunVimInTerminal('-S Xincsearch_restore_view', {'rows': 6, 'cols': 20}) call VerifyScreenDump(buf, 'Test_incsearch_restore_view_01', {}) - call term_sendkeys(buf, '/xxx') + call term_sendkeys(buf, '/xx') call VerifyScreenDump(buf, 'Test_incsearch_restore_view_02', {}) + call term_sendkeys(buf, 'x') + call VerifyScreenDump(buf, 'Test_incsearch_restore_view_03', {}) call term_sendkeys(buf, "\<Esc>") call VerifyScreenDump(buf, 'Test_incsearch_restore_view_01', {}) diff --git a/src/version.c b/src/version.c index 5baeaf3594..49beb19eff 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1697, +/**/ 1696, /**/ 1695, |