diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-03-26 15:47:43 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-03-26 15:47:43 +0900 |
| commit | 998c57442b951bcc1cc2159f60b6267569b03148 (patch) | |
| tree | 3e48d8e15ff748235f7a83c5f5c0e866642ca12c /test | |
| parent | 4a0ab6c9267ef9e07723c3c19f9007d7ed3ea9b4 (diff) | |
| download | fzf-998c57442b951bcc1cc2159f60b6267569b03148.tar.gz | |
Fix query precedence in an action chain (#4326)
When 'search' and any action that modifies the query are in an action
chain, anything that comes later takes precedence.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_core.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_core.rb b/test/test_core.rb index d37a4b47..2d3cc307 100644 --- a/test/test_core.rb +++ b/test/test_core.rb @@ -1881,4 +1881,13 @@ class TestCore < TestInteractive assert_includes lines, '> 555' end end + + def test_search_override_query_in_no_input_mode + tmux.send_keys %(seq 1000 | #{FZF} --sync --no-input --bind 'enter:show-input+change-query(555)+hide-input+search(999),space:search(111)+show-input+change-query(777)'), :Enter + tmux.until { |lines| assert_includes lines, '> 1' } + tmux.send_keys :Enter + tmux.until { |lines| assert_includes lines, '> 999' } + tmux.send_keys :Space + tmux.until { |lines| assert_includes lines, '> 777' } + end end |
