mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-28 10:53:49 -07:00
@@ -3559,14 +3559,6 @@ func (t *Terminal) Loop() error {
|
||||
scrollPreviewBy := func(amount int) {
|
||||
scrollPreviewTo(t.previewer.offset + amount)
|
||||
}
|
||||
for key, ret := range t.expect {
|
||||
if keyMatch(key, event) {
|
||||
t.pressed = ret
|
||||
t.reqBox.Set(reqClose, nil)
|
||||
t.mutex.Unlock()
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
actionsFor := func(eventType tui.EventType) []*action {
|
||||
return t.keymap[eventType.AsEvent()]
|
||||
@@ -4373,6 +4365,18 @@ func (t *Terminal) Loop() error {
|
||||
return true
|
||||
}
|
||||
|
||||
for key, ret := range t.expect {
|
||||
if keyMatch(key, event) {
|
||||
t.pressed = ret
|
||||
if actions, found := t.keymap[key]; found {
|
||||
doActions(actions)
|
||||
}
|
||||
t.reqBox.Set(reqClose, nil)
|
||||
t.mutex.Unlock()
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
if t.jumping == jumpDisabled || len(actions) > 0 {
|
||||
// Break out of jump mode if any action is submitted to the server
|
||||
if t.jumping != jumpDisabled {
|
||||
|
Reference in New Issue
Block a user