mirror of https://github.com/Hilbis/Hilbish
fix(readline): insert text in replace mode if cursor is at end of text
parent
1ba314d961
commit
722bd1cd80
|
@ -517,7 +517,9 @@ func (rl *Instance) editorInput(r []rune) {
|
|||
|
||||
case VimReplaceMany:
|
||||
for _, char := range r {
|
||||
rl.deleteX()
|
||||
if rl.pos != len(rl.line) {
|
||||
rl.deleteX()
|
||||
}
|
||||
rl.insert([]rune{char})
|
||||
}
|
||||
rl.refreshVimStatus()
|
||||
|
|
Loading…
Reference in New Issue