fix search I htink

master
bel 2020-01-26 18:13:51 +00:00
parent ff3ed3a57e
commit 2f0c09ff72
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ func filterTags(tags []string) func(t *task.Task) bool {
func filterSubstr(substr string) func(t *task.Task) bool {
return func(t *task.Task) bool {
return substr == "" || strings.Contains(fmt.Sprintf("%+v", t), substr)
found := substr == "" || strings.Contains(fmt.Sprintf("%+v %+v", t.Title, t.Tags), substr)
return found
}
}