diff options
Diffstat (limited to 'ui/search.go')
-rw-r--r-- | ui/search.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/search.go b/ui/search.go index b884faf..ee25604 100644 --- a/ui/search.go +++ b/ui/search.go @@ -33,7 +33,7 @@ func SearchAndGetID(label, searchString string) int { animes := mal.SearchAnime(searchString) template := &p.SelectTemplates { - Label: "{{ . }}?", + Label: "{{ . }}", Active: "{{ .Title | magenta }}", Inactive: "{{ .Title }}", Selected: "{{ .Title }}", @@ -47,7 +47,7 @@ More Details To Be Added Later searcher := func(input string, index int) bool { title := strings.Replace(strings.ToLower(animes[index].Title), " ", "", -1) input = strings.Replace(strings.ToLower(input), " ", "", -1) - return strings.Contains(title, title) + return strings.Contains(title, input) } prompt := p.Select { |