diff options
Diffstat (limited to 'qutebrowser/mainwindow/tabwidget.py')
-rw-r--r-- | qutebrowser/mainwindow/tabwidget.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index 4ac5e0379..0e95b7745 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -136,11 +136,11 @@ class TabWidget(QTabWidget): (fmt is None or ('{' + field + '}') not in fmt)): return - def right_align(text): - return str(text).rjust(len(str(self.count()))) + def right_align(num): + return str(num).rjust(len(str(self.count()))) - def left_align(text): - return str(text).ljust(len(str(self.count()))) + def left_align(num): + return str(num).ljust(len(str(self.count()))) bar = self.tabBar() cur_idx = bar.currentIndex() |