]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1697: incsearch test not sufficient v9.0.1697
authorChrist van Willegen <cvwillegen@gmail.com>
Sat, 12 Aug 2023 18:17:26 +0000 (20:17 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 12 Aug 2023 18:17:26 +0000 (20:17 +0200)
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>
src/testdir/dumps/Test_incsearch_restore_view_02.dump
src/testdir/dumps/Test_incsearch_restore_view_03.dump [new file with mode: 0644]
src/testdir/test_search.vim
src/version.c

index 2a2c9a2b8be19bf214277a9bdfccb22180df2f6c..c1716394794d0dc15d70baf67e01bb622daa205a 100644 (file)
@@ -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 (file)
index 0000000..2a2c9a2
--- /dev/null
@@ -0,0 +1,6 @@
+| +0&#ffffff0@19
+@20
+@20
+@20
+|x+1&&@2| +0&&@16
+|/|x@2> @15
index f3bc6bff7078e08d23c92644342713ea22f6016a..1a9f49bfee06078d033833d89b132248957fe22d 100644 (file)
@@ -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', {})
 
index 5baeaf3594f639add369789af8e67326b28da415..49beb19eff7f649fc329739b9d435e6d9de2e351 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1697,
 /**/
     1696,
 /**/