diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2019-02-22 14:33:29 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-02-22 14:36:30 +0900 |
| commit | 8dc1377efb140c40c7e121b29d9cedb52ad9ea9f (patch) | |
| tree | a7ad4c0eb63da379a3865ce5369541ea02536ef2 /test | |
| parent | 6c32148f9020e222bae335fa823229715e067815 (diff) | |
| download | fzf-8dc1377efb140c40c7e121b29d9cedb52ad9ea9f.tar.gz | |
Export FZF_PREVIEW_LINES and FZF_PREVIEW_COLUMNS to preview process
fzf will still override LINES and COLUMNS as before but they may not
hold the correct values depending on the default shell.
Close #1314
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test_go.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index df333c08..4d3fa647 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1371,7 +1371,7 @@ class TestGoFZF < TestBase end def test_preview_hidden - tmux.send_keys %(seq 1000 | #{FZF} --preview 'echo {{}-{}-\\$LINES-\\$COLUMNS}' --preview-window down:1:hidden --bind ?:toggle-preview), :Enter + tmux.send_keys %(seq 1000 | #{FZF} --preview 'echo {{}-{}-\\$FZF_PREVIEW_LINES-\\$FZF_PREVIEW_COLUMNS}' --preview-window down:1:hidden --bind ?:toggle-preview), :Enter tmux.until { |lines| lines[-1] == '>' } tmux.send_keys '?' tmux.until { |lines| lines[-2] =~ / {1-1-1-[0-9]+}/ } |
