From f43e82f17fb107d2093e6226833eb68e532c1810 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 25 Mar 2025 21:06:04 +0900 Subject: Do not ignore current query when input is hidden * The initial query given by --query should be respected * The current query should still be respected after `hide-input` (or `toggle-input) Fix #4327 --- test/test_core.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/test_core.rb') diff --git a/test/test_core.rb b/test/test_core.rb index 235fe52a..ade644a2 100644 --- a/test/test_core.rb +++ b/test/test_core.rb @@ -1856,4 +1856,14 @@ class TestCore < TestInteractive tmux.send_keys :Space tmux.until { |lines| assert_includes lines[line + 2], "> 5" } end + + def test_no_input_query + tmux.send_keys %(seq 1000 | #{FZF} --no-input --query 555 --bind space:toggle-input), :Enter + tmux.until { |lines| assert_includes lines, '> 555' } + tmux.send_keys :Space + tmux.until do |lines| + assert_equal 1, lines.match_count + assert_includes lines, '> 555' + end + end end -- cgit v1.2.3