projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check search result size and show min(len(result), count).
[rainbowstream.git]
/
rainbowstream
/
rainbow.py
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index aded31d45a9e51886bc33f2b45333cd1e22c9089..2056c32c1528b43c34984b4b0045bcf9f6687a44 100644
(file)
--- a/
rainbowstream/rainbow.py
+++ b/
rainbowstream/rainbow.py
@@
-454,7
+454,7
@@
def search():
# Return results
if rel:
printNicely('Newest tweets:')
- for i in reversed(xrange(
count
)):
+ for i in reversed(xrange(
min(len(rel), count)
)):
draw(t=rel[i], keyword=query)
printNicely('')
else: