diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-03-29 17:40:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-03-29 17:40:46 +0200 |
commit | 1834d37396e046ccbc4aa2678ba16a38197da6b4 (patch) | |
tree | f44f3eda7e643c7e61ac09e504c469b0a94a7049 /src/testdir/screendump.vim | |
parent | f06b0b6c8f85ea9c320f2be30b25ed084969c1e2 (diff) |
patch 8.0.1653: screen dump is made too soonv8.0.1653
Problem: Screen dump is made too soon.
Solution: Wait until the ruler is displayed. (Ozaki Kiichi, closes #2755)
Diffstat (limited to 'src/testdir/screendump.vim')
-rw-r--r-- | src/testdir/screendump.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim index 87a5823cc2..d4fae07425 100644 --- a/src/testdir/screendump.vim +++ b/src/testdir/screendump.vim @@ -59,6 +59,9 @@ func RunVimInTerminal(arguments, options) let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols}) call assert_equal([rows, cols], term_getsize(buf)) + " Wait for the ruler (in the status line) to be shown. + call WaitFor({-> len(term_getline(buf, rows)) >= cols - 1}) + return buf endfunc |