diff --git a/pkg/surveyext/editor.go b/pkg/surveyext/editor.go index 21a358aa0..f868ed671 100644 --- a/pkg/surveyext/editor.go +++ b/pkg/surveyext/editor.go @@ -105,7 +105,7 @@ func (e *GhEditor) prompt(initialValue string, config *survey.PromptConfig) (int } if r == '\r' || r == '\n' { if e.BlankAllowed { - return "", nil + return initialValue, nil } else { continue }