More misc fixes for TUI

This commit is contained in:
Kovid Goyal
2022-08-24 22:13:21 +05:30
parent 5703a3370e
commit 235eb868b2
3 changed files with 9 additions and 6 deletions

View File

@@ -256,7 +256,7 @@ func get_password(password string, password_file string, password_env string, us
if ans == "" && password_file != "" {
if password_file == "-" {
if tty.IsTerminal(os.Stdin.Fd()) {
ans, err = tui.ReadPassword("Password: ", false)
ans, err = tui.ReadPassword("Password: ", true)
if err != nil {
return
}