diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-12-01 03:27:58 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-12-01 03:28:10 +0900 |
commit | f6b19620566a299d8813ee51e02c26d21525d339 (patch) | |
tree | 2a0b871930cefea7447e50cfb18dbc505a4ee4a9 /test | |
parent | b3b101a89cd4a9431d98293e63e349367e83ac65 (diff) |
Inject $LINES and $COLUMNS when running preview command
Close #1168
Diffstat (limited to 'test')
-rw-r--r-- | test/test_go.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index ec495c6a..b3dc1c04 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1319,12 +1319,12 @@ class TestGoFZF < TestBase end def test_preview_hidden - tmux.send_keys %(seq 1000 | #{FZF} --preview 'echo {{}-{}}' --preview-window down:1:hidden --bind ?:toggle-preview), :Enter + tmux.send_keys %(seq 1000 | #{FZF} --preview 'echo {{}-{}-\\$LINES-\\$COLUMNS}' --preview-window down:1:hidden --bind ?:toggle-preview), :Enter tmux.until { |lines| lines[-1] == '>' } tmux.send_keys '?' - tmux.until { |lines| lines[-2].include?(' {1-1}') } + tmux.until { |lines| lines[-2].match?(/ {1-1-1-[0-9]+}/) } tmux.send_keys '555' - tmux.until { |lines| lines[-2].include?(' {555-555}') } + tmux.until { |lines| lines[-2].match?(/ {555-555-1-[0-9]+}/) } tmux.send_keys '?' tmux.until { |lines| lines[-1] == '> 555' } end |