summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-12-19 20:51:49 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-12-19 21:05:26 +0900
commite60a9a628b48bb1304db30b3c2d9e051c3af05cd (patch)
tree704c8886e96cd6125b3c40dfd4d117f5459d715d /test
parent01676919414a1b78e6255b2f217d42dab1076d50 (diff)
downloadfzf-e60a9a628b48bb1304db30b3c2d9e051c3af05cd.tar.gz
Add toggle-multi-line action
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index 105e8ef0..66e1c429 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -2133,7 +2133,11 @@ class TestGoFZF < TestBase
end
def test_keep_right
- tmux.send_keys "seq 10000 | #{FZF} --read0 --keep-right --no-multi-line", :Enter
+ tmux.send_keys "seq 10000 | #{FZF} --read0 --keep-right --no-multi-line --bind space:toggle-multi-line", :Enter
+ tmux.until { |lines| assert lines.any_include?('9999␊10000') }
+ tmux.send_keys :Space
+ tmux.until { |lines| assert lines.any_include?('> 1') }
+ tmux.send_keys :Space
tmux.until { |lines| assert lines.any_include?('9999␊10000') }
end