Skip to content

Commit

Permalink
patch 9.0.1697: incsearch test not sufficient
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cvwillegen authored and chrisbra committed Aug 12, 2023
1 parent 8878653 commit 73b8209
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/testdir/dumps/Test_incsearch_restore_view_02.dump
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
@20
@20
@20
|x+1&&@2| +0&&@16
|/|x@2> @15
|x+1&&@1|x+0&&| @16
|/|x@1> @16
6 changes: 6 additions & 0 deletions src/testdir/dumps/Test_incsearch_restore_view_03.dump
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
| +0&#ffffff0@19
@20
@20
@20
|x+1&&@2| +0&&@16
|/|x@2> @15
4 changes: 3 additions & 1 deletion src/testdir/test_search.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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', {})

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1697,
/**/
1696,
/**/
Expand Down

0 comments on commit 73b8209

Please sign in to comment.