]> granicus.if.org Git - vim/commitdiff
patch 8.2.2050: search test contains unneeded sleeps v8.2.2050
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Nov 2020 16:41:20 +0000 (17:41 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Nov 2020 16:41:20 +0000 (17:41 +0100)
Problem:    Search test contains unneeded sleeps.
Solution:   Rename the function, remove sleeps. (Christian Brabandt,
            closes #7369)

src/testdir/test_search.vim
src/version.c

index 00b1a15e12cdefeb273fc57ef13cbb2298ed8315..1018294613439b0c7e15068512acd5f0215cd004 100644 (file)
@@ -1776,7 +1776,7 @@ func Test_search_stopline()
   close!
 endfunc
 
-func Test_zzzz_incsearch_highlighting_newline()
+func Test_incsearch_highlighting_newline()
   CheckRunVimInTerminal
   CheckOption incsearch
   CheckScreendump
@@ -1789,20 +1789,16 @@ func Test_zzzz_incsearch_highlighting_newline()
   [CODE]
   call writefile(commands, 'Xincsearch_nl')
   let buf = RunVimInTerminal('-S Xincsearch_nl', {'rows': 5, 'cols': 10})
-  " Need to send one key at a time to force a redraw
   call term_sendkeys(buf, '/test')
-  sleep 100m
   call VerifyScreenDump(buf, 'Test_incsearch_newline1', {})
+  " Need to send one key at a time to force a redraw
   call term_sendkeys(buf, '\n')
-  sleep 100m
   call VerifyScreenDump(buf, 'Test_incsearch_newline2', {})
   call term_sendkeys(buf, 'x')
-  sleep 100m
   call VerifyScreenDump(buf, 'Test_incsearch_newline3', {})
   call term_sendkeys(buf, 'x')
   call VerifyScreenDump(buf, 'Test_incsearch_newline4', {})
   call term_sendkeys(buf, "\<CR>")
-  sleep 100m
   call VerifyScreenDump(buf, 'Test_incsearch_newline5', {})
   call StopVimInTerminal(buf)
 
index f927ac9c4759211e25244350ad64912f20d32de3..216f5c9895f2e1ad354870d4d72716481216b3ce 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2050,
 /**/
     2049,
 /**/