From 59cdbd780c8911d3ada47c3010730067c91db414 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 18 Jun 2015 07:01:30 +0200 Subject: [PATCH] Fix {url} substitution with :spawn. See #759. This is a regression introduced in 6dbdea0ee3fa52d08cc135dba65924792b38395c. --- qutebrowser/browser/commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 4abb50710..625ceb05f 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -36,7 +36,7 @@ import pygments import pygments.lexers import pygments.formatters -from qutebrowser.commands import userscripts, cmdexc, cmdutils +from qutebrowser.commands import userscripts, cmdexc, cmdutils, runners from qutebrowser.config import config, configexc from qutebrowser.browser import webelem, inspector from qutebrowser.keyinput import modeman @@ -939,6 +939,9 @@ class CommandDispatcher: except ValueError as e: raise cmdexc.CommandError("Error while splitting command: " "{}".format(e)) + + args = runners.replace_variables(self._win_id, args) + log.procs.debug("Executing {} with args {}, userscript={}".format( cmd, args, userscript)) if userscript: