diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua index 8f47757c2f..f0478dc113 100644 --- a/runtime/lua/man.lua +++ b/runtime/lua/man.lua @@ -427,7 +427,8 @@ local function get_page(path, silent) if localfile_arg == nil then local mpath = get_path('man') -- Check for -l support. - localfile_arg = (mpath and system({ 'man', '-l', mpath }, true) or '') ~= '' + localfile_arg = (mpath and system({ 'man', '-l', mpath }, true, { MANPAGER = 'cat' }) or '') + ~= '' end local cmd = localfile_arg and { 'man', '-l', path } or { 'man', path }