diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-04-29 21:27:30 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-04-30 18:14:40 +0900 |
commit | 77f9f4664ac9002358735f152ea429e2a578aee2 (patch) | |
tree | f14e6149f252cacced75428aa5a0ac87a1c12e06 /test | |
parent | 5c2f85c39e98d6fcf70cbc887de7a1af1b0d9c52 (diff) |
Fix search not triggered when query change and reload happen at the same time
Fix #3268
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 7cdacdef..ff459e1c 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -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 |