From 1ee7eade475c4c37d5c38f63c6f6da9b55244a5b Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Fri, 23 Oct 2020 11:59:56 +0900 Subject: [PATCH] Fix double cursor issue --- layout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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