diff options
author | stk <stk@ableton.com> | 2023-01-26 13:03:42 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-03-21 14:17:10 +0100 |
commit | 377eced31adb9aa636896fea60060f9f8a9de910 (patch) | |
tree | e3966ff58c6140b79d003dbbf89167b9f8fa6b39 | |
parent | fadc2893d21c798e2b64b7f7929927347cf242dd (diff) |
Always prompt to return from subprocess if there was an error
Except when we are running integration tests, in which case we never want to
prompt because there wouldn't be a way to confirm the prompt.
-rw-r--r-- | pkg/gui/gui.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index ba759505a..9de9ca2bc 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -824,7 +824,7 @@ func (gui *Gui) runSubprocess(cmdObj oscommands.ICmdObj) error { //nolint:unpara subprocess.Stderr = io.Discard subprocess.Stdin = nil - if gui.Config.GetUserConfig().PromptToReturnFromSubprocess { + if gui.integrationTest == nil && (gui.Config.GetUserConfig().PromptToReturnFromSubprocess || err != nil) { fmt.Fprintf(os.Stdout, "\n%s", style.FgGreen.Sprint(gui.Tr.PressEnterToReturn)) // scan to buffer to prevent run unintentional operations when TUI resumes. |