diff --git a/ui.go b/ui.go index 7ab1bc5..99d1abd 100644 --- a/ui.go +++ b/ui.go @@ -353,8 +353,8 @@ func (ui *UI) loadFile(nav *Nav) { log.Print(msg) } + defer cmd.Wait() defer out.Close() - go func() { defer cmd.Wait() }() reader = out } else { f, err := os.Open(path)