diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua index 5c13426fc0..cb6bd85c1e 100644 --- a/runtime/lua/man.lua +++ b/runtime/lua/man.lua @@ -428,7 +428,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 }