Load help files when needed

This commit is contained in:
boombuler
2016-09-13 08:53:20 +02:00
parent d0fa467a3c
commit a7f159bddc
4 changed files with 27 additions and 32 deletions

View File

@@ -81,9 +81,8 @@ func CommandComplete(input string) (string, []string) {
func HelpComplete(input string) (string, []string) {
var suggestions []string
for _, topic := range helpFiles {
for topic, _ := range helpPages {
if strings.HasPrefix(topic, input) {
suggestions = append(suggestions, topic)
}
}