Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed URL quoting issue

  • Loading branch information...
commit ea2d9e4528d38bc93103bdc898de662eae6bc106 1 parent c26704f
@joonty authored
Showing with 8 additions and 7 deletions.
  1. +1 −4 plugin/python/vdebug/runner.py
  2. +7 −3 plugin/python/vdebug/util.py
View
5 plugin/python/vdebug/runner.py
@@ -5,7 +5,6 @@
import vdebug.ui.vimui
import socket
import vim
-import urllib
import vdebug.breakpoint
import vdebug.opts
import vdebug.util
@@ -89,9 +88,7 @@ def refresh(self,status):
stack_res = self.update_stack()
stack = stack_res.get_stack()
- filename = urllib.unquote(stack[0].get('filename'))
- self.cur_file = vdebug.util.FilePath(filename)
- # self.cur_file = vdebug.util.FilePath(stack[0].get('filename'))
+ self.cur_file = vdebug.util.FilePath(stack[0].get('filename'))
self.cur_lineno = stack[0].get('lineno')
vdebug.log.Log("Moving to current position in source window")
View
10 plugin/python/vdebug/util.py
@@ -2,7 +2,7 @@
import vdebug.log
import vim
import sys
-import re
+import urllib
class Keymapper:
"""Map and unmap key commands for the Vim user interface.
@@ -58,6 +58,7 @@ def __init__(self,filename):
if filename is None or \
len(filename) == 0:
raise FilePathError, "Missing or invalid file name"
+ filename = urllib.unquote(filename)
if filename.startswith('file:///'):
if sys.platform == "win32":
""" remove prefix till the drive letter """
@@ -100,8 +101,11 @@ def _create_remote(self,f):
break
return ret
- def as_local(self):
- return self.local
+ def as_local(self,quote = False):
+ if quote:
+ return urllib.quote(self.local)
+ else:
+ return self.local
def as_remote(self):
return self.remote
Please sign in to comment.
Something went wrong with that request. Please try again.