From 8dc1377efb140c40c7e121b29d9cedb52ad9ea9f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 22 Feb 2019 14:33:29 +0900 Subject: 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 --- test/test_go.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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]+}/ } -- cgit v1.2.3