summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-04-04 21:54:22 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-04-04 21:54:22 +0900
commitd56f605b6338842b415ac1ff578f4316455815fe (patch)
tree56d8ab62498255e93c4f3764850d3de48e1a47da /test
parentf8b713f425fea4dcbd33ecf611140f3157b4c541 (diff)
Add `rebind` action for restoring bindings after `unbind`
Fix #2752 Close #2564
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 74f9851a..3050fa0a 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -2043,8 +2043,8 @@ class TestGoFZF < TestBase
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
+ def test_unbind_rebind
+ tmux.send_keys "seq 100 | #{FZF} --bind 'c:clear-query,d:unbind(c,d),e:rebind(c,d)'", :Enter
tmux.until { |lines| assert_equal 100, lines.item_count }
tmux.send_keys 'ab'
tmux.until { |lines| assert_equal '> ab', lines[-1] }
@@ -2052,6 +2052,8 @@ class TestGoFZF < TestBase
tmux.until { |lines| assert_equal '>', lines[-1] }
tmux.send_keys 'dabcd'
tmux.until { |lines| assert_equal '> abcd', lines[-1] }
+ tmux.send_keys 'ecabddc'
+ tmux.until { |lines| assert_equal '> abdc', lines[-1] }
end
def test_item_index_reset_on_reload