INNER CODE UNIT · Go
y
asciimoo/wuzz · wuzz.go:476
y := oy + cy
if len(comps) == 1 {
comps[0] = comps[0][len(lastSymbol):]
} else {
y += 1
x -= len(lastSymbol)
maxWidth += len(lastSymbol)
}
showAutocomplete(comps, x, y, maxWidth, maxHeight, e.wuzzEditor.g)
e.isAutocompleting = true
}
}
func (e *SearchEditor) Edit(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) {
e.wuzzEditor.Edit(v, key, ch, mod)
e.wuzzEditor.g.Update(func(g *gocui.Gui) error {
e.wuzzEditor.app.PrintBody(g)
return nil