From 79035aafa916c32cfbbcb69063c35914f7682878 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Thu, 24 Mar 2022 21:00:12 +0100 Subject: [PATCH] fix: initialize extra prompt when nil resolves #1979 --- src/engine/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/engine.go b/src/engine/engine.go index 56974223..ff609e49 100644 --- a/src/engine/engine.go +++ b/src/engine/engine.go @@ -294,7 +294,7 @@ func (e *Engine) PrintExtraPrompt(promptType ExtraPromptType) string { prompt = e.Config.SecondaryPrompt } if prompt == nil { - return "" + prompt = &ExtraPrompt{} } getTemplate := func(template string) string { if len(template) != 0 {