fix: Multiple Previewer fixes (#225)
Fixes previews for files beginning with ~/ Previewer will now show directories Fix if clause with vim.fn.executable
This commit is contained in:
@@ -842,9 +842,7 @@ builtin.man_pages = function(opts)
|
||||
|
||||
local cmd = opts.man_cmd or "apropos --sections=1 ''"
|
||||
|
||||
local f = assert(io.popen(cmd, 'r'))
|
||||
local pages = assert(f:read('*a'))
|
||||
f:close()
|
||||
local pages = utils.get_os_command_output(cmd)
|
||||
|
||||
local lines = {}
|
||||
for s in pages:gmatch("[^\r\n]+") do
|
||||
|
||||
Reference in New Issue
Block a user