aboutsummaryrefslogtreecommitdiff
path: root/ui/search.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2022-06-12 17:47:33 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2022-06-12 17:47:33 +0530
commit1f404fdb78b9254379848086fba222f6317ea339 (patch)
treeacb6e6c7ed3a5f6a95894702a45b63ab6972ac0e /ui/search.go
parent6f5619ced3719e37bef2547d418311f8a90281d9 (diff)
added functionality to update status
Diffstat (limited to 'ui/search.go')
-rw-r--r--ui/search.go4
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 {