Fixes #16
This commit is contained in:
parent
b1358d7d74
commit
94df44eb6c
1 changed files with 6 additions and 5 deletions
11
babel.nim
11
babel.nim
|
|
@ -358,11 +358,12 @@ proc search(action: TAction) =
|
|||
var notFound = true
|
||||
for pkg in pkgList:
|
||||
for word in action.search:
|
||||
if word in pkg.tags:
|
||||
echoPackage(pkg)
|
||||
echo(" ")
|
||||
notFound = false
|
||||
break
|
||||
for tag in pkg.tags:
|
||||
if word in tag:
|
||||
echoPackage(pkg)
|
||||
echo(" ")
|
||||
notFound = false
|
||||
break
|
||||
if notFound:
|
||||
# Search by name.
|
||||
for pkg in pkgList:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue