diff --git a/plugin.go b/plugin.go index c72e47f..8ed44ed 100644 --- a/plugin.go +++ b/plugin.go @@ -380,7 +380,7 @@ func keyValueFromTty(item *KeyValueItem, in *os.File, out *os.File) error { item.Key = strings.TrimSpace(username) } - if item.Value == "" { + if item.Value == "" || item.Value == nil { if showKeyHelp { fmt.Fprintf(out, "Enter value of '%s':", item.Key) } else {