fix(input): fix display in wrong line of number input

This commit is contained in:
jguer 2022-02-06 10:44:33 +01:00
parent c5bea07f64
commit 0e3affd876
No known key found for this signature in database
GPG key ID: 6D6CC9BEA8556B35
2 changed files with 2 additions and 2 deletions

View file

@ -181,7 +181,7 @@ func (ae *AlpmExecutor) questionCallback() func(question alpm.QuestionAny) {
text.OperationInfoln(str)
for {
fmt.Print(gotext.Get("\nEnter a number (default=1): "))
fmt.Println(gotext.Get("\nEnter a number (default=1): "))
// TODO: reenable noconfirm
if settings.NoConfirm {

View file

@ -548,7 +548,7 @@ func providerMenu(dep string, providers providers, noConfirm bool) *query.Pkg {
text.OperationInfoln(str)
for {
fmt.Print(gotext.Get("\nEnter a number (default=1): "))
fmt.Println(gotext.Get("\nEnter a number (default=1): "))
if noConfirm {
fmt.Println("1")