m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 14:53:47 -05:00

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

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()