1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-05 15:15:49 +02:00

Fixed typo

This commit is contained in:
mjarkk 2018-11-14 11:40:32 +01:00
parent 6d2bf0b0b5
commit 448d9caf1b

View File

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