From 21cd0c48f2f4e74e0131f508d94a8cb0a943f820 Mon Sep 17 00:00:00 2001 From: David Kelso Date: Mon, 3 Oct 2016 14:52:50 -0700 Subject: [PATCH] Use %20 for spaces in filename URLs. --- VimR/vimr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VimR/vimr b/VimR/vimr index 7422539e..8fae9e2f 100755 --- a/VimR/vimr +++ b/VimR/vimr @@ -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)