diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index 26fd08923..4d24b3960 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -173,7 +173,7 @@ class TabbedBrowser(tabwidget.TabWidget): else: scroll_pos = '{:2}%'.format(y) - fields['scroll_pos'] = str(scroll_pos) + fields['scroll_pos'] = scroll_pos fmt = config.get('ui', 'window-title-format') self.window().setWindowTitle(fmt.format(**fields)) diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index 50b7c7dd4..c000d7342 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -120,7 +120,7 @@ class TabWidget(QTabWidget): else: scroll_pos = '{:2}%'.format(y) - fields['scroll_pos'] = str(scroll_pos) + fields['scroll_pos'] = scroll_pos fmt = config.get('tabs', 'title-format') self.tabBar().setTabText(idx, fmt.format(**fields))