Merge remote-tracking branch 'origin/pr/4342'

This commit is contained in:
Florian Bruhin 2018-10-16 11:16:36 +02:00
commit e33d582764

View File

@ -111,8 +111,11 @@ class HintLabel(QLabel):
unmatched = html.escape(unmatched) unmatched = html.escape(unmatched)
match_color = html.escape(config.val.colors.hints.match.fg) match_color = html.escape(config.val.colors.hints.match.fg)
if matched:
self.setText('<font color="{}">{}</font>{}'.format( self.setText('<font color="{}">{}</font>{}'.format(
match_color, matched, unmatched)) match_color, matched, unmatched))
else:
self.setText(unmatched)
self.adjustSize() self.adjustSize()
@pyqtSlot() @pyqtSlot()