Mercurial > vim
comparison src/testdir/test_search.vim @ 15918:22b51b13634d v8.1.0965
patch 8.1.0965: search test fails
commit https://github.com/vim/vim/commit/e86ecbd92271ad86b543c71ca50452528f704ffb
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 21 17:48:59 2019 +0100
patch 8.1.0965: search test fails
Problem: Search test fails.
Solution: Wait a bit longer for the 'ambiwidth' redraw.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 Feb 2019 18:00:08 +0100 |
parents | c94b46f98b1a |
children | 98d315176d48 |
comparison
equal
deleted
inserted
replaced
15917:ef8df97d2b3c | 15918:22b51b13634d |
---|---|
992 \ 'call timer_start(200, { _ -> setline(2, "x")})', | 992 \ 'call timer_start(200, { _ -> setline(2, "x")})', |
993 \ ], 'Xis_change_script') | 993 \ ], 'Xis_change_script') |
994 let buf = RunVimInTerminal('-S Xis_change_script', {'rows': 9, 'cols': 70}) | 994 let buf = RunVimInTerminal('-S Xis_change_script', {'rows': 9, 'cols': 70}) |
995 " Give Vim a chance to redraw to get rid of the spaces in line 2 caused by | 995 " Give Vim a chance to redraw to get rid of the spaces in line 2 caused by |
996 " the 'ambiwidth' check. | 996 " the 'ambiwidth' check. |
997 sleep 100m | 997 sleep 300m |
998 | 998 |
999 " Highlight X, it will be deleted by the timer callback. | 999 " Highlight X, it will be deleted by the timer callback. |
1000 call term_sendkeys(buf, ':%s/X') | 1000 call term_sendkeys(buf, ':%s/X') |
1001 call VerifyScreenDump(buf, 'Test_incsearch_change_01', {}) | 1001 call VerifyScreenDump(buf, 'Test_incsearch_change_01', {}) |
1002 call term_sendkeys(buf, "\<Esc>") | 1002 call term_sendkeys(buf, "\<Esc>") |