mirror of
https://github.com/Hilbis/Hilbish
synced 2025-03-30 10:13:23 +00:00
fix(readline): make completion search menu display
This commit is contained in:
parent
3eaeb6a5da
commit
d6338fc021
@ -238,7 +238,9 @@ func (rl *Instance) Readline() (string, error) {
|
||||
|
||||
// Normal completion search does only refresh the search pattern and the comps
|
||||
if rl.modeTabFind || rl.modeAutoFind {
|
||||
rl.resetVirtualComp(false)
|
||||
rl.backspaceTabFind()
|
||||
rl.renderHelpers()
|
||||
rl.viUndoSkipAppend = true
|
||||
} else {
|
||||
// Always cancel any virtual completion
|
||||
@ -517,7 +519,9 @@ func (rl *Instance) Readline() (string, error) {
|
||||
if rl.modeAutoFind || rl.modeTabFind {
|
||||
rl.resetVirtualComp(false)
|
||||
rl.updateTabFind(r[:i])
|
||||
rl.renderHelpers()
|
||||
rl.viUndoSkipAppend = true
|
||||
continue
|
||||
} else {
|
||||
rl.resetVirtualComp(false)
|
||||
rl.editorInput(r[:i])
|
||||
|
Loading…
x
Reference in New Issue
Block a user