Expand ~ to home dir with :run-userscript.

This commit is contained in:
Florian Bruhin 2014-12-29 22:17:58 +01:00
parent 8b9f323f41
commit 4471f81c11

View File

@ -822,6 +822,7 @@ class CommandDispatcher:
cmd: The userscript to run.
args: Arguments to pass to the userscript.
"""
cmd = os.path.expanduser(cmd)
userscripts.run(cmd, *args, url=self._current_url(),
win_id=self._win_id)