m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 06:43:47 -05:00

'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'
This commit is contained in:
Junegunn Choi
2019-12-06 22:34:30 +09:00
parent 5e42b1c9f8
commit 1e6ac5590e
2 changed files with 16 additions and 7 deletions

View File

@@ -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