Export FZF_* variables to 'reload' process as well

This commit is contained in:
Junegunn Choi
2024-02-15 22:27:32 +09:00
parent 425deadca9
commit 5e6788c679
4 changed files with 26 additions and 11 deletions

View File

@@ -1918,7 +1918,7 @@ class TestGoFZF < TestBase
end
def test_reload
tmux.send_keys %(seq 1000 | #{FZF} --bind 'change:reload(seq {q}),a:reload(seq 100),b:reload:seq 200' --header-lines 2 --multi 2), :Enter
tmux.send_keys %(seq 1000 | #{FZF} --bind 'change:reload(seq $FZF_QUERY),a:reload(seq 100),b:reload:seq 200' --header-lines 2 --multi 2), :Enter
tmux.until { |lines| assert_equal 998, lines.match_count }
tmux.send_keys 'a'
tmux.until do |lines|