2
2
réplica de https://github.com/Hilbis/Hilbish synced 2025-07-13 06:12:03 +00:00

feat(readline): pass suggestions to history searcher callback

Este commit está contenido en:
TorchedSammy 2022-07-17 18:22:00 -04:00
padre 001bd15ced
commit 3dae826578
Firmado por: sammyette
ID de clave GPG: 904FC49417B44DCD
Se han modificado 2 ficheros con 2 adiciones y 2 borrados

Ver fichero

@ -88,7 +88,7 @@ func (g *CompletionGroup) updateTabFind(rl *Instance) {
if rl.searchMode != HistoryFind {
g.Suggestions = g.filterSuggestions(rl)
} else {
g.Suggestions = rl.HistorySearcher(string(rl.tfLine))
g.Suggestions = rl.HistorySearcher(string(rl.tfLine), g.Suggestions)
}
// Finally, the group computes its new printing settings

Ver fichero

@ -201,7 +201,7 @@ type Instance struct {
RawInputCallback func([]rune) // called on all input
HistorySearcher func(string) []string
HistorySearcher func(string, []string) []string
}
// NewInstance is used to create a readline instance and initialise it with sane defaults.