From 952276dc2dcdd5401be804b4417d0cb392e2eda8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 12 Sep 2024 18:22:07 +0900 Subject: Add 'noinfo' option to hide scroll offset information in preview window fzf --preview 'seq 1000' --preview-window noinfo Close #2525 --- test/test_go.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/test_go.rb b/test/test_go.rb index ac294d62..1860ac1a 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -3378,6 +3378,15 @@ class TestGoFZF < TestBase assert_equal expected, result end end + + def test_preview_window_noinfo + # │ 1 ││ + tmux.send_keys %(#{FZF} --preview 'seq 1000' --preview-window top,noinfo --scrollbar), :Enter + tmux.until do |lines| + assert lines[1]&.start_with?('│ 1') + assert lines[1]&.end_with?(' ││') + end + end end module TestShell -- cgit v1.2.3