From 40a6b11a1bd51672a54215666375191415811838 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Tue, 8 May 2012 11:22:30 +0200 Subject: [PATCH] Re-fixed shortening which I broke during the last rebase --- deluge/ui/console/commands/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/commands/info.py b/deluge/ui/console/commands/info.py index 432d8f8ab..867b705fb 100644 --- a/deluge/ui/console/commands/info.py +++ b/deluge/ui/console/commands/info.py @@ -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: