We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd66499 commit 17df42eCopy full SHA for 17df42e
pkg/gui/gui.go
@@ -662,7 +662,10 @@ func (gui *Gui) runSubprocess(cmdObj oscommands.ICmdObj) error { //nolint:unpara
662
663
if gui.Config.GetUserConfig().PromptToReturnFromSubprocess {
664
fmt.Fprintf(os.Stdout, "\n%s", style.FgGreen.Sprint(gui.Tr.PressEnterToReturn))
665
- fmt.Scanln() // wait for enter press
+
666
+ // scan to buffer to prevent run unintentional operations when TUI resumes.
667
+ var buffer string
668
+ fmt.Scanln(&buffer) // wait for enter press
669
}
670
671
return err
0 commit comments