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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user