summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-12-19 21:01:16 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-12-19 21:05:26 +0900
commitca5e633399e19f71f102a8df195e2f63a8a42137 (patch)
tree1928a46cb480aa4268d9f321bc7b181b758fac83 /test
parente60a9a628b48bb1304db30b3c2d9e051c3af05cd (diff)
downloadfzf-ca5e633399e19f71f102a8df195e2f63a8a42137.tar.gz
Add toggle-hscroll
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 66e1c429..1042bfcd 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -1442,10 +1442,14 @@ class TestGoFZF < TestBase
writelines(['=' * 10_000 + '0123456789'])
[0, 3, 6].each do |off|
tmux.prepare
- tmux.send_keys "#{FZF} --hscroll-off=#{off} -q 0 < #{tempname}", :Enter
+ tmux.send_keys "#{FZF} --hscroll-off=#{off} -q 0 --bind space:toggle-hscroll < #{tempname}", :Enter
tmux.until { |lines| assert lines[-3]&.end_with?((0..off).to_a.join + '··') }
tmux.send_keys '9'
tmux.until { |lines| assert lines[-3]&.end_with?('789') }
+ tmux.send_keys :Space
+ tmux.until { |lines| assert lines[-3]&.end_with?('=··') }
+ tmux.send_keys :Space
+ tmux.until { |lines| assert lines[-3]&.end_with?('789') }
tmux.send_keys :Enter
end
end