Do not restore terminal state while running an external command

This commit is contained in:
Junegunn Choi 2023-01-23 02:16:26 +09:00
parent acccf8a9b8
commit 826178f1e2
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -2241,7 +2241,6 @@ func (t *Terminal) executeCommand(template string, forcePlus bool, background bo
t.redraw()
t.refresh()
} else {
t.tui.Pause(false)
if captureFirstLine {
out, _ := cmd.StdoutPipe()
reader := bufio.NewReader(out)
@ -2252,7 +2251,6 @@ func (t *Terminal) executeCommand(template string, forcePlus bool, background bo
} else {
cmd.Run()
}
t.tui.Resume(false, false)
}
t.executing.Set(false)
cleanTemporaryFiles()