mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-04 06:02:04 -07:00
@@ -254,7 +254,11 @@ func Run(opts *Options, version string, revision string) {
|
||||
}
|
||||
for evt, value := range *events {
|
||||
switch evt {
|
||||
|
||||
case EvtQuit:
|
||||
if reading {
|
||||
reader.terminate()
|
||||
}
|
||||
os.Exit(value.(int))
|
||||
case EvtReadNew, EvtReadFin:
|
||||
if evt == EvtReadFin && nextCommand != nil {
|
||||
restart(*nextCommand)
|
||||
|
Reference in New Issue
Block a user