Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion oviewer/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func (root *Root) cancelWait(cancel context.CancelFunc) error {
switch ev := ev.(type) {
case *tcell.EventKey: // cancel key?
c.Capture(ev)
case *eventSearchQuit: // found
case *eventSearchQuit, *eventSearchMove: // found or moved
// Replay events that occurred during the search.
for _, queued := range eventQueue {
root.postEvent(queued)
Expand All @@ -474,6 +474,8 @@ func (root *Root) cancelWait(cancel context.CancelFunc) error {
eventQueue = append(eventQueue, ev)
default:
// ignore other events.
log.Println("cancelWait: ignore event", ev)
return nil
}
}
}
Expand Down
Loading