mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.0.1653: screen dump is made too soon (#10911)
Problem: Screen dump is made too soon.
Solution: Wait until the ruler is displayed. (Ozaki Kiichi, closes vim/vim#2755)
1834d37396
This commit is contained in:
parent
d1bed81ad8
commit
5f23a3dbcf
@ -1343,6 +1343,8 @@ func Test_Changed_FirstTime()
|
|||||||
call writefile([''], 'Xchanged.txt')
|
call writefile([''], 'Xchanged.txt')
|
||||||
let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], {'term_rows': 3})
|
let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], {'term_rows': 3})
|
||||||
call assert_equal('running', term_getstatus(buf))
|
call assert_equal('running', term_getstatus(buf))
|
||||||
|
" Wait for the ruler (in the status line) to be shown.
|
||||||
|
call WaitFor({-> term_getline(buf, 3) =~# '\<All$'})
|
||||||
" It's only adding autocmd, so that no event occurs.
|
" It's only adding autocmd, so that no event occurs.
|
||||||
call term_sendkeys(buf, ":au! TextChanged <buffer> call writefile(['No'], 'Xchanged.txt')\<cr>")
|
call term_sendkeys(buf, ":au! TextChanged <buffer> call writefile(['No'], 'Xchanged.txt')\<cr>")
|
||||||
call term_sendkeys(buf, "\<C-\\>\<C-N>:qa!\<cr>")
|
call term_sendkeys(buf, "\<C-\\>\<C-N>:qa!\<cr>")
|
||||||
|
Loading…
Reference in New Issue
Block a user