2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-21 04:53:24 +00:00

feat: make right arrow insert hint text if any is available

This commit is contained in:
sammyette 2024-09-16 13:08:49 -04:00
parent e6b88816fd
commit a59394ec2b
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -707,6 +707,11 @@ func (rl *Instance) escapeSeq(r []rune) {
rl.renderHelpers()
return
}
if len(rl.hintText) != 0 {
// fill in hint text
rl.insert(rl.hintText)
}
if (rl.modeViMode == VimInsert && rl.pos < len(rl.line)) ||
(rl.modeViMode != VimInsert && rl.pos < len(rl.line)-1) {
rl.moveCursorByAdjust(1)