Permalink
Browse files

Merge pull request #119 from abbeyj/context-menu-source-relative-paths

Fix the "Jump to definition" and "Jump to file" context menu items.
  • Loading branch information...
erikrose committed Mar 19, 2013
2 parents 435663c + 7d239eb commit a565c45442b12a805555d7847a152c992dac079a
Showing with 2 additions and 2 deletions.
  1. +2 −2 dxr/plugins/clang/htmlifier.py
@@ -232,7 +232,7 @@ def refs(self):
path = rows[0][0]
start = token.start + match.start(1)
end = token.start + match.end(1)
- url = self.tree.config.wwwroot + '/' + self.tree.name + '/' + path
+ url = self.tree.config.wwwroot + '/' + self.tree.name + '/source/' + path
menu = [{
'text': "Jump to file",
'title': "Jump to what is likely included there",
@@ -266,7 +266,7 @@ def quote(self, qualname):
def add_jump_definition(self, menu, path, line):
""" Add a jump to definition to the menu """
# Definition url
- url = self.tree.config.wwwroot + '/' + self.tree.name + '/' + path
+ url = self.tree.config.wwwroot + '/' + self.tree.name + '/source/' + path
url += "#l%s" % line
menu.insert(0, {
'text': "Jump to definition",

0 comments on commit a565c45

Please sign in to comment.