diff --git a/ui.go b/ui.go index e04b7c5..7ab1bc5 100644 --- a/ui.go +++ b/ui.go @@ -353,7 +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)