diff --git a/plugins/picker/picker.go b/plugins/picker/picker.go index 1b6a16d..c92d6fc 100644 --- a/plugins/picker/picker.go +++ b/plugins/picker/picker.go @@ -3,7 +3,9 @@ package picker import ( + "errors" "regexp" + "strconv" "strings" "fmt" @@ -62,7 +64,7 @@ var pickerListItem = regexp.MustCompile(`^([^,]+),[ \t]+`) func (p * PickerPlugin) parse(body string) (int, []string, error) { subs := pickerListPrologue.FindStringSubmatch(body) - if subs == nil { + if subs == nil && !strings.HasPrefix(body, "pick") { return 0, nil, errors.New("saddle up for a syntax error") }