Improved 'babel search'.
This commit is contained in:
parent
946fa7c7c2
commit
d826584f21
1 changed files with 5 additions and 4 deletions
|
|
@ -386,10 +386,11 @@ proc search(action: TAction) =
|
|||
if notFound:
|
||||
# Search by name.
|
||||
for pkg in pkgList:
|
||||
if pkg.name in action.search:
|
||||
echoPackage(pkg)
|
||||
echo(" ")
|
||||
notFound = false
|
||||
for word in action.search:
|
||||
if word in pkg.name:
|
||||
echoPackage(pkg)
|
||||
echo(" ")
|
||||
notFound = false
|
||||
|
||||
if notFound:
|
||||
echo("No package found.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue