1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 06:43:24 +03:00

Use %20 for spaces in filename URLs.

This commit is contained in:
David Kelso 2016-10-03 14:52:50 -07:00
parent 0c3cdb6108
commit 21cd0c48f2

View File

@ -23,7 +23,7 @@ def vimr(action, args=None, dry_run=False):
if files:
query_params["file"] = [os.path.abspath(f) for f in files]
url = "vimr://{0}?{1}".format(action, urllib.urlencode(query_params, True))
url = "vimr://{0}?{1}".format(action, urllib.urlencode(query_params, True).replace('+', '%20'))
call_open(url, dry_run)