diff --git a/prompt.go b/prompt.go index 07e2897..9fdfcb6 100644 --- a/prompt.go +++ b/prompt.go @@ -149,7 +149,8 @@ func (p *Prompt) Run() (string, error) { input = "" } if len(input) > 0 { - input = input[:len(input)-1] + r := []rune(input) + input = string(r[:len(r)-1]) } default: if eraseDefault {