diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-02 00:24:34 -0400 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-09-02 06:24:34 +0200 |
commit | 5f23a3dbcf6776eb17757cd879ed0b22b81829ff (patch) | |
tree | 40cb767ee53a198f7a81df93573bd7590517666f /src | |
parent | d1bed81ad8a1dde99953e1f880e5794680d53d62 (diff) | |
download | rneovim-5f23a3dbcf6776eb17757cd879ed0b22b81829ff.tar.gz rneovim-5f23a3dbcf6776eb17757cd879ed0b22b81829ff.tar.bz2 rneovim-5f23a3dbcf6776eb17757cd879ed0b22b81829ff.zip |
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)
https://github.com/vim/vim/commit/1834d37396e046ccbc4aa2678ba16a38197da6b4
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 16bacf4591..5848940a2b 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -1343,6 +1343,8 @@ func Test_Changed_FirstTime() call writefile([''], 'Xchanged.txt') let buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], {'term_rows': 3}) 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. call term_sendkeys(buf, ":au! TextChanged <buffer> call writefile(['No'], 'Xchanged.txt')\<cr>") call term_sendkeys(buf, "\<C-\\>\<C-N>:qa!\<cr>") |