summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-06-07 23:07:03 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-06-07 23:07:03 +0900
commita7aa08ce07e2c21ac9ed8621e46cbe989228f3cd (patch)
treec2b82601fe5ab28177098a69e84541639aa926ee /test
parent06d63a862e900dcc6ee6c2335120cc8cb939698f (diff)
Add backward-eof event for --bind
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb11
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