m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Add --preview-window follow option

This commit is contained in:
Junegunn Choi
2020-12-05 21:16:35 +09:00
parent cbfee31593
commit 2ec382ae0e
5 changed files with 78 additions and 36 deletions

View File

@@ -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