Skip to content

Commit

Permalink
feat: make right arrow insert hint text if any is available
Browse files Browse the repository at this point in the history
  • Loading branch information
TorchedSammy committed Sep 16, 2024
1 parent e6b8881 commit a59394e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readline/readline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a59394e

Please sign in to comment.