summaryrefslogtreecommitdiff
path: root/test/test_go.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_go.rb')
-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