diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index f8d5e29a7..c96215253 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -141,7 +141,7 @@ class NewConfig: 'Definitions of search engines which can be used via the ' 'address bar.\n' 'The searchengine named DEFAULT is used when ' - 'general.auto_search is true an\d something else than an URL ' + 'general.auto_search is true and something else than an URL ' 'was entered to be opened. Other search engines can be used ' 'via the bang-syntax, e.g. "qutebrowser !google". The string ' '"{}" will be replaced by the search term, use "{{" and "}}" ' diff --git a/qutebrowser/widgets/mainwindow.py b/qutebrowser/widgets/mainwindow.py index dda805ac3..754beb8fb 100644 --- a/qutebrowser/widgets/mainwindow.py +++ b/qutebrowser/widgets/mainwindow.py @@ -110,7 +110,7 @@ class MainWindow(QWidget): """ super().resizeEvent(e) - confheight = config.config.get('general', 'completion_height') + confheight = str(config.config.get('general', 'completion_height')) if confheight.endswith('%'): perc = int(confheight.rstrip('%')) height = self.height() * perc / 100