1 Add the -m option to man's command line to augment the list of paths searched by man.
2 The required -m option is only available in the mandoc implementation.
3 --- a/adapter/protocol/man.nim
4 +++ b/adapter/protocol/man.nim
5 @@ -264,7 +264,7 @@ proc myOpen(cmd: string): tuple[ofile, efile: File] =
7 proc doMan(man, keyword, section: string) =
8 let sectionOpt = if section == "": "" else: ' ' & quoteShellPosix(section)
9 let cmd = "MANCOLOR=1 GROFF_NO_SGR=1 MAN_KEEP_FORMATTING=1 " &
10 - man & sectionOpt & ' ' & quoteShellPosix(keyword)
11 + man & sectionOpt & " -m @out@ " & quoteShellPosix(keyword)
12 let (ofile, efile) = myOpen(cmd)