From 3148b0f3e88f8a116491135dc10a7ce6d96899bf Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 9 Dec 2024 18:27:02 +0900 Subject: Restore previous behavior --- test/test_go.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/test_go.rb b/test/test_go.rb index 40794b3c..105e8ef0 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -3081,6 +3081,13 @@ class TestGoFZF < TestBase end end + def test_preview_window_width_exception + tmux.send_keys "seq 10 | #{FZF} --scrollbar --preview-window border-left --border --preview 'seq 1000'", :Enter + tmux.until do |lines| + assert lines[1]&.end_with?(' 1/1000││') + end + end + def test_become tmux.send_keys "seq 100 | #{FZF} --bind 'enter:become:seq {} | #{FZF}'", :Enter tmux.until { |lines| assert_equal 100, lines.item_count } -- cgit v1.2.3