commit 8941c87182b6050b6dc713cc7c920ae2e755648f Author: Kamran Riaz Khan krkhan@inspirated.com Date: Fri May 27 18:06:00 2011 +0500
Fixed calculation of maximum printable menu items. --- src/cli/menu.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cli/menu.py b/src/cli/menu.py index 315d349..0395abb 100644 --- a/src/cli/menu.py +++ b/src/cli/menu.py @@ -64,7 +64,7 @@ class Menu(): titlewidth = max(map(lambda title: len(title), titles)) + 2
# total number of titles that can be printed in current width - printable = (width - 2) / titlewidth + printable = width / titlewidth - 1
top = 1 left = 1
tor-commits@lists.torproject.org