Fix double cursor issue

This commit is contained in:
Shohei YOSHIDA 2020-10-23 11:59:56 +09:00
parent 8417a33e75
commit 1ee7eade47

View file

@ -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