diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-06-07 23:07:03 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-06-07 23:07:03 +0900 |
commit | a7aa08ce07e2c21ac9ed8621e46cbe989228f3cd (patch) | |
tree | c2b82601fe5ab28177098a69e84541639aa926ee /test | |
parent | 06d63a862e900dcc6ee6c2335120cc8cb939698f (diff) |
Add backward-eof event for --bind
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index e7a7dd62..2b865ea9 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1746,6 +1746,17 @@ class TestGoFZF < TestBase tmux.send_keys "seq 10000 | #{FZF} --read0 --keep-right", :Enter tmux.until { |lines| assert lines.any_include?('9999 10000') } end + + def test_backward_eof + tmux.send_keys "echo foo | #{FZF} --bind 'backward-eof:reload(seq 100)'", :Enter + tmux.until { |lines| lines.item_count == 1 && lines.match_count == 1 } + tmux.send_keys 'x' + tmux.until { |lines| lines.item_count == 1 && lines.match_count == 0 } + tmux.send_keys :BSpace + tmux.until { |lines| lines.item_count == 1 && lines.match_count == 1 } + tmux.send_keys :BSpace + tmux.until { |lines| lines.item_count == 100 && lines.match_count == 100 } + end end module TestShell |