We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a59394e commit b311f24Copy full SHA for b311f24
readline/hint.go
@@ -56,3 +56,10 @@ func (rl *Instance) resetHintText() {
56
//rl.hintY = 0
57
rl.hintText = []rune{}
58
}
59
+
60
+func (rl *Instance) insertHintText() {
61
+ if len(rl.hintText) != 0 {
62
+ // fill in hint text
63
+ rl.insert(rl.hintText)
64
+ }
65
+}
readline/readline.go
@@ -708,10 +708,8 @@ func (rl *Instance) escapeSeq(r []rune) {
708
return
709
710
711
- if len(rl.hintText) != 0 {
712
- // fill in hint text
713
- rl.insert(rl.hintText)
714
- }
+ rl.insertHintText()
715
if (rl.modeViMode == VimInsert && rl.pos < len(rl.line)) ||
716
(rl.modeViMode != VimInsert && rl.pos < len(rl.line)-1) {
717
rl.moveCursorByAdjust(1)
0 commit comments