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:
Simon Hauser
2020-11-13 21:07:12 +01:00
committed by GitHub
parent 9fad317d05
commit 76e7fe8cb0
3 changed files with 25 additions and 9 deletions

View File

@@ -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