fix(readline): insert text in replace mode if cursor is at end of text

pull/128/head
TorchedSammy 2022-03-23 21:10:04 -04:00
parent 1ba314d961
commit 722bd1cd80
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 3 additions and 1 deletions

View File

@ -517,7 +517,9 @@ func (rl *Instance) editorInput(r []rune) {
case VimReplaceMany:
for _, char := range r {
if rl.pos != len(rl.line) {
rl.deleteX()
}
rl.insert([]rune{char})
}
rl.refreshVimStatus()