From 5a5ff70703497b3f03a2da4eea2641e2c1081065 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 17 Oct 2014 11:39:44 +0200 Subject: [PATCH] hints: fix replacing of {hint-url}. Fixes #200. --- qutebrowser/browser/hints.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 0a03df1c8..c97db8464 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -82,10 +82,8 @@ class HintContext: """Get the arguments, with {hint-url} replaced by the given URL.""" args = [] for arg in self.args: - if arg == '{hint-url}': - args.append(urlstr) - else: - args.append(arg) + arg = arg.replace('{hint-url}', urlstr) + args.append(arg) return args