Skip to content

Commit

Permalink
Merge pull request oh-my-fish#505 from oh-my-fish/fix/search-only-desc
Browse files Browse the repository at this point in the history
Limit search to name+description
  • Loading branch information
sagebind authored Apr 30, 2017
2 parents 3c029f9 + 8092fba commit 751ca97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/omf/functions/index/omf.index.query.fish
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function omf.index.query -d 'Query packages in the index'
type_matches = 1;
}
!text_matches && !/^#/ {
!text_matches && !/^#/ && $1 == "description" {
if (match(tolower($2), q_text)) {
text_matches = 1;
}
Expand Down

0 comments on commit 751ca97

Please sign in to comment.