Re-fixed shortening which I broke during the last rebase

This commit is contained in:
Asmageddon 2012-05-08 11:22:30 +02:00
parent 471757d6c6
commit 40a6b11a1b
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ class Command(BaseCommand):
#I _REALLY_ should make a nice function for it that can partition and shorten stuff
space_left = cols - strwidth("[s] 100.00% " + status["name"] + " "*3) - 2
if space_left - 8 >= len(torrent_id):
if space_left >= len(torrent_id) - 2:
#There's enough space, print it
s += " {!cyan!}%s" % torrent_id
else: