summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-09-27 22:34:06 +0200
committerAraq <rumpf_a@web.de>2018-09-27 22:34:06 +0200
commit4046ee818f200611d62447cfae239b15eec1682e (patch)
tree6fe4a99618fb8e1d4f9bdb41fbdd934dd917844b
parent72e15ff739cc73fbf6e3090756d3f9cb3d5af2fa (diff)
downloadNim-4046ee818f200611d62447cfae239b15eec1682e.tar.gz
fixes #9083
-rw-r--r--compiler/docgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index 4e36b72e5..664f45c79 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -610,7 +610,7 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) =
   var seeSrcRope: Rope = nil
   let docItemSeeSrc = getConfigVar(d.conf, "doc.item.seesrc")
   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:
       let cwd = canonicalizePath(d.conf, getCurrentDir())
       var path = toFullPath(d.conf, n.info)