pull/3769/head
Junegunn Choi 4 weeks ago
parent e4104724c1
commit 017922a9b8
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -2739,7 +2739,7 @@ func (t *Terminal) executeCommand(template string, forcePlus bool, background bo
if capture {
out, _ := cmd.StdoutPipe()
reader := bufio.NewReader(out)
if err := cmd.Start(); err != nil {
cmd.Start()
if firstLineOnly {
line, _ = reader.ReadString('\n')
line = strings.TrimRight(line, "\r\n")
@ -2748,7 +2748,6 @@ func (t *Terminal) executeCommand(template string, forcePlus bool, background bo
line = string(bytes)
}
cmd.Wait()
}
} else {
cmd.Run()
}

Loading…
Cancel
Save