Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Xdebug.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import json
import webbrowser
from xml.dom.minidom import parseString
import urllib


xdebug_current = None
Expand Down Expand Up @@ -219,7 +220,7 @@ def breakpoint_clear(self):
self.del_breakpoint(row)

def uri(self):
return 'file://' + os.path.realpath(self.view.file_name())
return 'file://' + urllib.quote(os.path.realpath(self.view.file_name()))

def lines(self, data=None):
lines = []
Expand Down Expand Up @@ -656,6 +657,7 @@ def show_file(window, uri):
transport, filename = uri.split(':///', 1) # scheme:///C:/path/file => scheme, C:/path/file
else:
transport, filename = uri.split('://', 1) # scheme:///path/file => scheme, /path/file
filename = urllib.unquote(filename)
if transport == 'file' and os.path.exists(filename):
window = sublime.active_window()
views = window.views()
Expand Down