summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-12-06 22:34:30 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-12-06 22:34:30 +0900
commit1e6ac5590ec3c928b4d065a42eb45bac87752bbc (patch)
tree1e50f12022b22340b1193067d5330ad2420744a9 /test
parent5e42b1c9f8f61c3dd6165c1a9a8321e865a06601 (diff)
downloadfzf-1e6ac5590ec3c928b4d065a42eb45bac87752bbc.tar.gz
'reload' action should be allowed even where there's no match
If the command template doesn't have any placeholder expressions. : | fzf --bind 'space:reload:seq 10'
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 501641e2..8d6fb37c 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -1640,6 +1640,13 @@ class TestGoFZF < TestBase
tmux.until { |lines| lines.item_count == 553 && lines.match_count == 1 }
tmux.until { |lines| !lines[-2].include?('(1/2)') }
end
+
+ def test_reload_even_when_theres_no_match
+ tmux.send_keys %(: | #{FZF} --bind 'space:reload(seq 10)'), :Enter
+ tmux.until { |lines| lines.item_count.zero? }
+ tmux.send_keys :Space
+ tmux.until { |lines| lines.item_count == 10 }
+ end
end
module TestShell