Mirror of the Vim source from https://github.com/vim/vim
Révision | 7cb072acc5c01fb46742f889a469e3278e48df2b (tree) |
---|---|
l'heure | 2020-11-26 01:45:03 |
Auteur | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
patch 8.2.2050: search test contains unneeded sleeps
Commit: https://github.com/vim/vim/commit/6bed0dbc8500be3ea751cc527a6ee89ca073a4d1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 25 17:41:20 2020 +0100
@@ -1776,7 +1776,7 @@ | ||
1776 | 1776 | close! |
1777 | 1777 | endfunc |
1778 | 1778 | |
1779 | -func Test_zzzz_incsearch_highlighting_newline() | |
1779 | +func Test_incsearch_highlighting_newline() | |
1780 | 1780 | CheckRunVimInTerminal |
1781 | 1781 | CheckOption incsearch |
1782 | 1782 | CheckScreendump |
@@ -1789,20 +1789,16 @@ | ||
1789 | 1789 | [CODE] |
1790 | 1790 | call writefile(commands, 'Xincsearch_nl') |
1791 | 1791 | let buf = RunVimInTerminal('-S Xincsearch_nl', {'rows': 5, 'cols': 10}) |
1792 | - " Need to send one key at a time to force a redraw | |
1793 | 1792 | call term_sendkeys(buf, '/test') |
1794 | - sleep 100m | |
1795 | 1793 | call VerifyScreenDump(buf, 'Test_incsearch_newline1', {}) |
1794 | + " Need to send one key at a time to force a redraw | |
1796 | 1795 | call term_sendkeys(buf, '\n') |
1797 | - sleep 100m | |
1798 | 1796 | call VerifyScreenDump(buf, 'Test_incsearch_newline2', {}) |
1799 | 1797 | call term_sendkeys(buf, 'x') |
1800 | - sleep 100m | |
1801 | 1798 | call VerifyScreenDump(buf, 'Test_incsearch_newline3', {}) |
1802 | 1799 | call term_sendkeys(buf, 'x') |
1803 | 1800 | call VerifyScreenDump(buf, 'Test_incsearch_newline4', {}) |
1804 | 1801 | call term_sendkeys(buf, "\<CR>") |
1805 | - sleep 100m | |
1806 | 1802 | call VerifyScreenDump(buf, 'Test_incsearch_newline5', {}) |
1807 | 1803 | call StopVimInTerminal(buf) |
1808 | 1804 |
@@ -751,6 +751,8 @@ | ||
751 | 751 | static int included_patches[] = |
752 | 752 | { /* Add new patch number below this line */ |
753 | 753 | /**/ |
754 | + 2050, | |
755 | +/**/ | |
754 | 756 | 2049, |
755 | 757 | /**/ |
756 | 758 | 2048, |