From 2191a44e36216791623cb166cc45f7a66f0bda34 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 12 Sep 2024 22:04:19 +0900 Subject: Redraw/hide scroll offset when 'info' property is changed --- test/test_go.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_go.rb b/test/test_go.rb index 1860ac1a..8f627baf 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -3381,11 +3381,16 @@ class TestGoFZF < TestBase def test_preview_window_noinfo # │ 1 ││ - tmux.send_keys %(#{FZF} --preview 'seq 1000' --preview-window top,noinfo --scrollbar), :Enter + tmux.send_keys %(#{FZF} --preview 'seq 1000' --preview-window top,noinfo --scrollbar --bind space:change-preview-window:info), :Enter tmux.until do |lines| assert lines[1]&.start_with?('│ 1') assert lines[1]&.end_with?(' ││') end + tmux.send_keys :Space + tmux.until do |lines| + assert lines[1]&.start_with?('│ 1') + assert lines[1]&.end_with?('1000││') + end end end -- cgit v1.2.3