This commit is contained in:
Araq 2018-09-27 22:34:06 +02:00
commit 4046ee818f

View file

@ -610,7 +610,7 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) =
var seeSrcRope: Rope = nil var seeSrcRope: Rope = nil
let docItemSeeSrc = getConfigVar(d.conf, "doc.item.seesrc") let docItemSeeSrc = getConfigVar(d.conf, "doc.item.seesrc")
if docItemSeeSrc.len > 0: if docItemSeeSrc.len > 0:
let path = relativeTo(AbsoluteFile toFullPath(d.conf, n.info), d.conf.projectPath, '/') let path = relativeTo(AbsoluteFile toFullPath(d.conf, n.info), AbsoluteDir getCurrentDir(), '/')
when false: when false:
let cwd = canonicalizePath(d.conf, getCurrentDir()) let cwd = canonicalizePath(d.conf, getCurrentDir())
var path = toFullPath(d.conf, n.info) var path = toFullPath(d.conf, n.info)