Fix search not triggered when query change and reload happen at the same time

Fix #3268
This commit is contained in:
Junegunn Choi
2023-04-29 21:27:30 +09:00
parent 5c2f85c39e
commit 77f9f4664a
3 changed files with 17 additions and 2 deletions

View File

@@ -2861,6 +2861,11 @@ class TestGoFZF < TestBase
tmux.send_keys :c
tmux.until { |lines| assert_equal 0, lines.match_count }
end
def test_reload_and_change
tmux.send_keys "(echo foo; echo bar) | #{FZF} --bind 'load:reload-sync(sleep 60)+change-query(bar)'", :Enter
tmux.until { |lines| assert_equal 1, lines.match_count }
end
end
module TestShell