summaryrefslogtreecommitdiffstats
path: root/test/test_go.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_go.rb')
-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 7ec519b1..60f14a4b 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -2042,6 +2042,17 @@ class TestGoFZF < TestBase
tmux.send_keys 'C-K'
tmux.until { |lines| assert_equal(%w[1 2 3 4 5], top5[lines]) }
end
+
+ def test_unbind
+ tmux.send_keys "seq 100 | #{FZF} --bind 'c:clear-query,d:unbind(c,d)'", :Enter
+ tmux.until { |lines| assert_equal 100, lines.item_count }
+ tmux.send_keys 'ab'
+ tmux.until { |lines| assert_equal '> ab', lines[-1] }
+ tmux.send_keys 'c'
+ tmux.until { |lines| assert_equal '>', lines[-1] }
+ tmux.send_keys 'dabcd'
+ tmux.until { |lines| assert_equal '> abcd', lines[-1] }
+ end
end
module TestShell