Fix calculating offset position in go-autocomplete.go