diff --git a/layout.go b/layout.go index 4c1d68a..8cd6da6 100644 --- a/layout.go +++ b/layout.go @@ -160,7 +160,7 @@ func (u UserPrompt) Draw(state *Peco) { Fill: false, }) default: - posX = c.Pos() + posX = c.Pos() + u.promptLen + 1 // the caret is in the middle of the string prev := int(0) var i int