From ca5e633399e19f71f102a8df195e2f63a8a42137 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 19 Dec 2024 21:01:16 +0900 Subject: Add toggle-hscroll --- test/test_go.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3