diff --git a/host.go b/host.go index 0ee043f..068b969 100644 --- a/host.go +++ b/host.go @@ -231,7 +231,7 @@ func (h *Host) AutoCompleteFunction(u *message.User) func(line string, pos int, posPartial := pos - len(partial) var completed string - if isFirst && strings.HasPrefix(partial, "/") { + if isFirst && strings.HasPrefix(line, "/") { // Command completed = h.completeCommand(partial) if completed == "/reply" {