Expand ~ to home dir with :run-userscript.
This commit is contained in:
parent
8b9f323f41
commit
4471f81c11
@ -822,6 +822,7 @@ class CommandDispatcher:
|
|||||||
cmd: The userscript to run.
|
cmd: The userscript to run.
|
||||||
args: Arguments to pass to the userscript.
|
args: Arguments to pass to the userscript.
|
||||||
"""
|
"""
|
||||||
|
cmd = os.path.expanduser(cmd)
|
||||||
userscripts.run(cmd, *args, url=self._current_url(),
|
userscripts.run(cmd, *args, url=self._current_url(),
|
||||||
win_id=self._win_id)
|
win_id=self._win_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user