mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-14 06:13:47 -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:
@@ -6039,6 +6039,8 @@ func (t *Terminal) Loop() error {
|
||||
t.input = currentInput
|
||||
t.cx = len(t.input)
|
||||
beof = false
|
||||
} else if string(t.input) != string(currentInput) {
|
||||
t.inputOverride = nil
|
||||
}
|
||||
return true
|
||||
}
|
||||
@@ -6064,9 +6066,6 @@ func (t *Terminal) Loop() error {
|
||||
t.truncateQuery()
|
||||
}
|
||||
queryChanged = queryChanged || t.pasting == nil && string(previousInput) != string(t.input)
|
||||
if queryChanged {
|
||||
t.inputOverride = nil
|
||||
}
|
||||
changed = changed || queryChanged
|
||||
if onChanges, prs := t.keymap[tui.Change.AsEvent()]; queryChanged && prs && !doActions(onChanges) {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user