Fix {url} substitution with :spawn.

See #759.

This is a regression introduced in 6dbdea0ee3.
This commit is contained in:
Florian Bruhin 2015-06-18 07:01:30 +02:00
parent 703b0043db
commit 59cdbd780c

View File

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