Fixed help symbol.
h3rald h3rald@h3rald.com
Sun, 27 Oct 2024 02:43:39 +0200
2 files changed,
2 insertions(+),
7 deletions(-)
M
minpkg/lib/min_global.nim
→
minpkg/lib/min_global.nim
@@ -719,13 +719,7 @@ if not sym.doc.isNil and sym.doc.kind == JObject:
foundDoc = true displayDoc(sym.doc) return - var mdl = "" - if s.contains('.'): - let parts = s.split(".") - mdl = parts[0] - s = parts[1] - if HELP["symbols"].hasKey(s) and (mdl == "" or mdl == HELP["symbols"][ - s]["module"].getStr): + if HELP["symbols"].hasKey(s): foundDoc = true displayDoc HELP["symbols"][s] if i.scope.hasSigil(s):
M
next-release.md
→
next-release.md
@@ -5,4 +5,5 @@
### Fixes and Improvements * Implemented `define-sigil` (was documented but not actually implemented). +* The `help` symbol now correctly displays help for namespaced symbols.