From 2ec382ae0eda85f89a4b977aa39425fb7e710df1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 5 Dec 2020 21:16:35 +0900 Subject: Add --preview-window follow option --- test/test_go.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/test_go.rb b/test/test_go.rb index d9d1e1bc..416692e2 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1832,6 +1832,11 @@ class TestGoFZF < TestBase tmux.send_keys 'b' tmux.until { |lines| assert_equal 'b> foo', lines[-1] } end + + def test_preview_window_follow + tmux.send_keys "#{FZF} --preview 'seq 1000 | nl' --preview-window down:noborder:follow", :Enter + tmux.until { |lines| assert_equal '1000 1000', lines[-1].strip } + end end module TestShell -- cgit v1.2.3