diff options
Diffstat (limited to 'runtime/lua/man.lua')
| -rw-r--r-- | runtime/lua/man.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua index 787a4e63d1..1dd5a3c585 100644 --- a/runtime/lua/man.lua +++ b/runtime/lua/man.lua @@ -510,6 +510,11 @@ local function get_paths(name, sect) or vim.env.MANPATH if not mandirs_raw then + -- Fall back to direct lookup ("man -w [sect] name"). NetBSD man lacks "-w". #25919 + local ok, path = pcall(M._find_path, name, sect) + if ok and path then + return { path } + end return {}, "Could not determine man directories from: 'man -w', 'manpath' or $MANPATH" end |