1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-12-03 22:59:46 +02:00

Worked and fixed a view comments

This commit is contained in:
mjarkk
2018-12-09 13:04:19 +01:00
parent efb82a58ae
commit f14effe5f5
6 changed files with 29 additions and 23 deletions

View File

@@ -87,7 +87,10 @@ func (c *OSCommand) DetectUnamePass(command string, ask func(string) string) err
}
for askFor, prompt := range prompts {
if match, _ := regexp.MatchString(prompt.pattern, ttyText); match && prompt.canAskFor {
if !prompt.canAskFor {
continue
}
if match, _ := regexp.MatchString(prompt.pattern, ttyText); match {
prompt.canAskFor = false
ttyText = ""
return ask(askFor)