Mercurial > vim
comparison src/testdir/test_search.vim @ 13132:fe0cec169589 v8.0.1440
patch 8.0.1440: terminal window: some vterm responses are delayed
commit https://github.com/vim/vim/commit/b50773c6df0bc2c9c2ab1afecc78083abc606de0
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 30 22:31:19 2018 +0100
patch 8.0.1440: terminal window: some vterm responses are delayed
Problem: Terminal window: some vterm responses are delayed.
Solution: After writing input. check if there is output to read. (Ozaki
Kiichi, closes #2594)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Jan 2018 22:45:05 +0100 |
parents | 25ab78f14c8b |
children | dd6a63e3e7c4 |
comparison
equal
deleted
inserted
replaced
13131:a1667d3bcd5f | 13132:fe0cec169589 |
---|---|
617 let lines = ['abb vim vim vi', 'vimvivim'] | 617 let lines = ['abb vim vim vi', 'vimvivim'] |
618 call writefile(lines, 'Xsearch.txt') | 618 call writefile(lines, 'Xsearch.txt') |
619 let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile', 'Xsearch.txt'], {'term_rows': 3}) | 619 let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile', 'Xsearch.txt'], {'term_rows': 3}) |
620 | 620 |
621 call WaitFor({-> lines == [term_getline(buf, 1), term_getline(buf, 2)] }) | 621 call WaitFor({-> lines == [term_getline(buf, 1), term_getline(buf, 2)] }) |
622 " wait for vim to complete initialization | |
623 call term_wait(buf) | |
622 | 624 |
623 " Get attr of normal(a0), incsearch(a1), hlsearch(a2) highlight | 625 " Get attr of normal(a0), incsearch(a1), hlsearch(a2) highlight |
624 call term_sendkeys(buf, ":set incsearch hlsearch\<cr>") | 626 call term_sendkeys(buf, ":set incsearch hlsearch\<cr>") |
625 call term_sendkeys(buf, '/b') | 627 call term_sendkeys(buf, '/b') |
626 call term_wait(buf, 200) | 628 call term_wait(buf, 200) |