fix(readline): make completion search menu display

pull/217/head
TorchedSammy 2022-11-25 19:08:38 -04:00
parent 3eaeb6a5da
commit d6338fc021
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 4 additions and 0 deletions

View File

@ -238,7 +238,9 @@ func (rl *Instance) Readline() (string, error) {
// Normal completion search does only refresh the search pattern and the comps // Normal completion search does only refresh the search pattern and the comps
if rl.modeTabFind || rl.modeAutoFind { if rl.modeTabFind || rl.modeAutoFind {
rl.resetVirtualComp(false)
rl.backspaceTabFind() rl.backspaceTabFind()
rl.renderHelpers()
rl.viUndoSkipAppend = true rl.viUndoSkipAppend = true
} else { } else {
// Always cancel any virtual completion // Always cancel any virtual completion
@ -517,7 +519,9 @@ func (rl *Instance) Readline() (string, error) {
if rl.modeAutoFind || rl.modeTabFind { if rl.modeAutoFind || rl.modeTabFind {
rl.resetVirtualComp(false) rl.resetVirtualComp(false)
rl.updateTabFind(r[:i]) rl.updateTabFind(r[:i])
rl.renderHelpers()
rl.viUndoSkipAppend = true rl.viUndoSkipAppend = true
continue
} else { } else {
rl.resetVirtualComp(false) rl.resetVirtualComp(false)
rl.editorInput(r[:i]) rl.editorInput(r[:i])