mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
patch 9.1.1516: tests: no test that 'incsearch' is updated after search completion
Problem: tests: no test that 'incsearch' is updated after accepting search completion. Solution: Add a test case (zeertzjq). closes: #17682 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
21449ee49c
commit
08e5b128b8
10
src/testdir/dumps/Test_search_wildmenu_6.dump
Normal file
10
src/testdir/dumps/Test_search_wildmenu_6.dump
Normal file
@ -0,0 +1,10 @@
|
||||
|t+0&#ffff4012|h|e+0&#ffffff0| @71
|
||||
|t+1&&|h|e+0&&|s|e| @69
|
||||
|t+0&#ffff4012|h|e+0&#ffffff0| @71
|
||||
|f|o@1|b|a|r| @68
|
||||
|t+0&#ffff4012|h|e+0&#ffffff0|t+0&#ffff4012|h|e+0&#ffffff0| @68
|
||||
|t+0&#ffff4012|h|e+0&#ffffff0|t+0&#ffff4012|h|e+0&#ffffff0|r|e| @66
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
|~| @73
|
||||
|/+0#0000000&|t|h> @71
|
10
src/testdir/dumps/Test_search_wildmenu_7.dump
Normal file
10
src/testdir/dumps/Test_search_wildmenu_7.dump
Normal file
@ -0,0 +1,10 @@
|
||||
|t+0&#ffff4012|h|e+0&#ffffff0| @71
|
||||
|t+1&&|h|e+0&&|s|e| @69
|
||||
|t+0&#ffff4012|h|e+0&#ffffff0| @71
|
||||
|f|o@1|b|a|r| @68
|
||||
|t+0&#ffff4012|h|e+0&#ffffff0|t+0&#ffff4012|h|e+0&#ffffff0| @68
|
||||
|t+0&#ffff4012|h|e+0&#ffffff0|t+0&#ffff4012|h|e+0&#ffffff0|r|e| @66
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
|t+0#0000001#ffff4012|h|e|s|e| +3#0000000#ffffff0@1|t|h|e| @1|t|h|e|t|h|e| @1|t|h|e|t|h|e|r|e| @1|t|h|e|r|e| @39
|
||||
|/+0&&|t|h|e|s|e> @68
|
10
src/testdir/dumps/Test_search_wildmenu_8.dump
Normal file
10
src/testdir/dumps/Test_search_wildmenu_8.dump
Normal file
@ -0,0 +1,10 @@
|
||||
|t+0&#ffff4012|h|e| +0&#ffffff0@71
|
||||
|t+1&&|h|e|s+0&&|e| @69
|
||||
|t+0&#ffff4012|h|e| +0&#ffffff0@71
|
||||
|f|o@1|b|a|r| @68
|
||||
|t+0&#ffff4012|h|e|t|h|e| +0&#ffffff0@68
|
||||
|t+0&#ffff4012|h|e|t|h|e|r+0&#ffffff0|e| @66
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
|~| @73
|
||||
|/+0#0000000&|t|h|e> @70
|
@ -4534,6 +4534,16 @@ func Test_search_wildmenu_screendump()
|
||||
call term_sendkeys(buf, "\<esc>gg/t.*\\n.*\\n.\<tab>")
|
||||
call VerifyScreenDump(buf, 'Test_search_wildmenu_5', {})
|
||||
|
||||
" 'incsearch' is redrawn after accepting completion
|
||||
call term_sendkeys(buf, "\<esc>:set wim=full\<cr>")
|
||||
call term_sendkeys(buf, ":set incsearch hlsearch\<cr>")
|
||||
call term_sendkeys(buf, "/th")
|
||||
call VerifyScreenDump(buf, 'Test_search_wildmenu_6', {})
|
||||
call term_sendkeys(buf, "\<f5>")
|
||||
call VerifyScreenDump(buf, 'Test_search_wildmenu_7', {})
|
||||
call term_sendkeys(buf, "\<c-n>\<c-y>")
|
||||
call VerifyScreenDump(buf, 'Test_search_wildmenu_8', {})
|
||||
|
||||
call term_sendkeys(buf, "\<esc>")
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
@ -719,6 +719,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1516,
|
||||
/**/
|
||||
1515,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user