jesseduffield.lazygit/pkg
Jesse Duffield bd2170a99c request explicit return from subprocess
Previously we were recording output from subprocesses using a multiwriter
and hooking that up to the cmd's stdout to write to both os.Stdout and
a buffer. We would then display the output after the program finished.

This worked well for commands like 'ls' but not for commands like 'vi'
which expect you to be in a tty, and when you've got the cmd's stdout
pointing at a multiwriter, the subprogram thinks we're not in a tty
and then things like terminal corruption can happen. This was the case
with neovim, and even in vim a warning was given with a pause before
starting the program.

Now we're chucking out the multiwriter and instead making it that you
need to press enter after the program has finished to return to lazygit.
This allows you to view the output of the program (e.g. if it's ls) and
then decide that you want to return. It's one level of unnecessary
redirection for editors like vim, but even they could potentially have
output to stderr/stdout that you want to look at before returning.

 Please enter the commit message for your changes. Lines starting
2019-05-26 21:19:54 +10:00
..
app prompt user to git init when outside a repo 2019-03-16 11:38:16 +11:00
commands Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
config Add skipHookPrefix to config 2019-04-13 14:38:17 +10:00
git Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
gui request explicit return from subprocess 2019-05-26 21:19:54 +10:00
i18n request explicit return from subprocess 2019-05-26 21:19:54 +10:00
test fix up tests 2019-03-02 13:39:09 +11:00
updates use go-errors package to display stacktrace of errors that cause panics 2019-02-11 22:39:17 +11:00
utils fix padding with coloures strings 2019-05-19 15:25:33 +10:00