summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-12-05 21:16:35 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-12-05 21:16:35 +0900
commit2ec382ae0eda85f89a4b977aa39425fb7e710df1 (patch)
tree344315edbca0e7bcf7455daaeb4f1a4f24be3dfd /test
parentcbfee31593113fd372a728c45b4c73a573839a02 (diff)
Add --preview-window follow option
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb5
1 files changed, 5 insertions, 0 deletions
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