Restore STDIN during execute-silent

This allows users to terminate the process with CTRL-C when it hangs.
This commit is contained in:
Junegunn Choi
2018-09-27 11:10:49 +09:00
parent 8e34e6fbb4
commit 27c40dc6b0
2 changed files with 10 additions and 4 deletions

View File

@@ -1309,7 +1309,9 @@ func (t *Terminal) executeCommand(template string, forcePlus bool, background bo
t.redraw()
t.refresh()
} else {
t.tui.Pause(false)
cmd.Run()
t.tui.Resume(false)
}
}