diff options
author | Jimmy <jimmy@spalge.com> | 2019-07-06 20:43:42 +1200 |
---|---|---|
committer | Jimmy <jimmy@spalge.com> | 2019-07-06 20:43:42 +1200 |
commit | 221fb5df5d74550ce333805a3a2a3952b2cd97f7 (patch) | |
tree | 19cbe5fc27c07883f1e70be35200386f3d478ec2 | |
parent | 7d750137dfa7348c1515e88c8c1f9c3d16f8a3a1 (diff) | |
download | qutebrowser-221fb5df5d74550ce333805a3a2a3952b2cd97f7.tar.gz qutebrowser-221fb5df5d74550ce333805a3a2a3952b2cd97f7.zip |
Move color conversion to string inside conditional.
So it is only done for matched ones.
-rw-r--r-- | qutebrowser/browser/hints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index a46c67452..7ccfe6b0a 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -103,8 +103,8 @@ class HintLabel(QLabel): matched = html.escape(matched) unmatched = html.escape(unmatched) - match_color = config.cache['colors.hints.match.fg'].name() if matched: + match_color = config.cache['colors.hints.match.fg'].name() self.setText('<font color="{}">{}</font>{}'.format( match_color, matched, unmatched)) else: |