summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-07-22 21:22:59 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-07-22 21:22:59 +0900
commit928fccc15baf50aafe9ecb50303089361375fb89 (patch)
treecc519e72f1925bec89f3c0c20ae445c348fcbf2b /test
parentbbaa3ab8bdb4e039d42477f1dcd8640d1211d800 (diff)
Fix header not shown when the lines go beyond the screen limit
Diffstat (limited to 'test')
-rw-r--r--test/test_go.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 7effb5fb..dd113d1f 100644
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -680,7 +680,10 @@ class TestGoFZF < TestBase
def test_header_lines_overflow
tmux.send_keys "seq 100 | #{fzf '--header-lines=200'}", :Enter
- tmux.until { |lines| lines[-2].include?('0/0') }
+ tmux.until do |lines|
+ lines[-2].include?('0/0') &&
+ lines[-3].include?(' 1')
+ end
tmux.send_keys :Enter
assert_equal '', readonce.chomp
end