diff --git a/src/engine/engine.go b/src/engine/engine.go index 2864b559..fa56eb10 100644 --- a/src/engine/engine.go +++ b/src/engine/engine.go @@ -244,7 +244,13 @@ func (e *Engine) renderBlock(block *Block, cancelNewline bool) { return } - prompt := strings.Repeat(" ", space-length) + var prompt string + space -= length + + if space > 0 { + prompt += strings.Repeat(" ", space-length) + } + prompt += text e.write(prompt) case RPrompt: