Fix the cursor position when given accent letters
This commit is contained in:
parent
ba23322956
commit
b825471eb8
@ -148,7 +148,7 @@ func (r *Render) Render(buffer *Buffer, completion *CompletionManager) {
|
||||
r.out.SetColor(r.inputTextColor, r.inputBGColor, false)
|
||||
r.out.WriteStr(line)
|
||||
r.out.SetColor(DefaultColor, DefaultColor, false)
|
||||
r.out.CursorBackward(len(line) - buffer.CursorPosition)
|
||||
r.out.CursorBackward(len([]rune(line)) - buffer.CursorPosition)
|
||||
r.renderCompletion(buffer, completion)
|
||||
if suggest, ok := completion.GetSelectedSuggestion(); ok {
|
||||
r.out.CursorBackward(len([]rune(buffer.Document().GetWordBeforeCursor())))
|
||||
|
Loading…
Reference in New Issue
Block a user