From 1834d37396e046ccbc4aa2678ba16a38197da6b4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 29 Mar 2018 17:40:46 +0200 Subject: patch 8.0.1653: screen dump is made too soon Problem: Screen dump is made too soon. Solution: Wait until the ruler is displayed. (Ozaki Kiichi, closes #2755) --- src/testdir/screendump.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/testdir/screendump.vim') 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 -- cgit v1.2.3