summaryrefslogtreecommitdiff
path: root/test/test_core.rb
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-02-01 11:12:59 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-02-01 17:03:59 +0900
commite1e171a3c458b8bc7dc347cbbd89be30f490ffb8 (patch)
treeae2c4275ae78cce08d345740c0d32295a31cc361 /test/test_core.rb
parentd075c00015c3a2045061f289f0a089bc7ad6de5a (diff)
downloadfzf-e1e171a3c458b8bc7dc347cbbd89be30f490ffb8.tar.gz
Add toggle-bind
Diffstat (limited to 'test/test_core.rb')
-rw-r--r--test/test_core.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_core.rb b/test/test_core.rb
index 5e47ef9d..893d040b 100644
--- a/test/test_core.rb
+++ b/test/test_core.rb
@@ -1174,8 +1174,8 @@ class TestCore < TestInteractive
tmux.until { |lines| assert_equal 2, lines.select_count }
end
- def test_unbind_rebind
- tmux.send_keys "seq 100 | #{FZF} --bind 'c:clear-query,d:unbind(c,d),e:rebind(c,d)'", :Enter
+ def test_unbind_rebind_toggle_bind
+ tmux.send_keys "seq 100 | #{FZF} --bind 'c:clear-query,d:unbind(c,d),e:rebind(c,d),f:toggle-bind(c)'", :Enter
tmux.until { |lines| assert_equal 100, lines.match_count }
tmux.send_keys 'ab'
tmux.until { |lines| assert_equal '> ab', lines[-1] }
@@ -1185,6 +1185,10 @@ class TestCore < TestInteractive
tmux.until { |lines| assert_equal '> abcd', lines[-1] }
tmux.send_keys 'ecabddc'
tmux.until { |lines| assert_equal '> abdc', lines[-1] }
+ tmux.send_keys 'fcabfc'
+ tmux.until { |lines| assert_equal '> abc', lines[-1] }
+ tmux.send_keys 'fc'
+ tmux.until { |lines| assert_equal '>', lines[-1] }
end
def test_scroll_off