Commit c969f5e 1 parent 36ce05e commit c969f5e Copy full SHA for c969f5e
File tree 3 files changed +13
-0
lines changed
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
# 🎀 Changelog
2
2
3
3
## Unreleased
4
+ ### Added
5
+ - Forward/Right arrow key will fill in hint text (#327 )
6
+
4
7
### Fixed
5
8
- Skip over file and prevent panic if info cannot be retrieved during file completion (due to permission error or anything else)
6
9
Original file line number Diff line number Diff line change @@ -56,3 +56,10 @@ func (rl *Instance) resetHintText() {
56
56
//rl.hintY = 0
57
57
rl .hintText = []rune {}
58
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
+ }
Original file line number Diff line number Diff line change @@ -707,6 +707,9 @@ func (rl *Instance) escapeSeq(r []rune) {
707
707
rl .renderHelpers ()
708
708
return
709
709
}
710
+
711
+ rl .insertHintText ()
712
+
710
713
if (rl .modeViMode == VimInsert && rl .pos < len (rl .line )) ||
711
714
(rl .modeViMode != VimInsert && rl .pos < len (rl .line )- 1 ) {
712
715
rl .moveCursorByAdjust (1 )
You can’t perform that action at this time.
0 commit comments