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