Autocomplete starts the autocomplete process
(c Completer)
| 25 | |
| 26 | // Autocomplete starts the autocomplete process |
| 27 | func (b *Buffer) Autocomplete(c Completer) bool { |
| 28 | b.Completions, b.Suggestions = c(b) |
| 29 | if len(b.Completions) != len(b.Suggestions) || len(b.Completions) == 0 { |
| 30 | return false |
| 31 | } |
| 32 | b.CurSuggestion = -1 |
| 33 | b.CycleAutocomplete(true) |
| 34 | return true |
| 35 | } |
| 36 | |
| 37 | // CycleAutocomplete moves to the next suggestion |
| 38 | func (b *Buffer) CycleAutocomplete(forward bool) { |
nothing calls this directly
no test coverage detected