Skip to content

Commit

Permalink
Merge pull request #66 from mrjoelkemp/fix_relative_path
Browse files Browse the repository at this point in the history
JumpToDependency: Fix relative pathing.
  • Loading branch information
mrjoelkemp committed Dec 11, 2014
2 parents 6e9788c + 68e58c4 commit ed641b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 1 addition & 5 deletions JumpToDependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ def handleRelativePaths(self, module):
fileDir = os.path.dirname(self.view.filename)
module = os.path.normpath(os.path.join(fileDir, module))

if (module[0] == '/'):
module = module[1:]

return module

def get_absolute_path(self, module):
Expand All @@ -146,8 +143,7 @@ def get_absolute_path(self, module):
"""
filename = ''

# If it's an absolute path already, it was probably
# a module that uses plugin loader
# If it's an absolute path already, it was probably a module that uses plugin loader
if self.view.path not in module:
filename += self.view.path
if self.window.root not in module and self.view.path != self.window.root:
Expand Down
4 changes: 4 additions & 0 deletions changelogs/2.0.4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Jump to Dependency: Bug Fix
---

Jumping to relatively pathed modules has been fixed.
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"2.0.0": "changelogs/2.0.0.txt",
"2.0.1": "changelogs/2.0.1.txt",
"2.0.2": "changelogs/2.0.2.txt",
"2.0.3": "changelogs/2.0.3.txt"
"2.0.3": "changelogs/2.0.3.txt",
"2.0.4": "changelogs/2.0.4.txt"
}

0 comments on commit ed641b3

Please sign in to comment.