Fix checks

This commit is contained in:
Florian Bruhin 2014-02-27 13:07:36 +01:00
parent cd29814ef3
commit 4e78775d3c
2 changed files with 2 additions and 2 deletions

View File

@ -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 "}}" '

View File

@ -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