mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user