Small fixes

This commit is contained in:
Zachary Yedidia
2019-06-15 22:23:19 -04:00
parent 0f4f60c018
commit 7cd5024e34
3 changed files with 7 additions and 5 deletions

View File

@@ -57,7 +57,9 @@ func (b *Buffer) CycleAutocomplete(forward bool) {
}
b.Replace(start, end, b.Completions[b.CurSuggestion])
b.HasSuggestions = true
if len(b.Suggestions) > 1 {
b.HasSuggestions = true
}
}
func GetArg(b *Buffer) (string, int) {