diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2020-11-13 21:07:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-13 15:07:12 -0500 |
| commit | 76e7fe8cb037e7944dbb13ec34362166d44e625b (patch) | |
| tree | 97987fa49966a47b6b5dc8ec1b79f2ed9bdfd354 /lua/telescope/builtin.lua | |
| parent | 9fad317d0565e4e258d6fdea1279a5ace968549b (diff) | |
fix: Multiple Previewer fixes (#225)
Fixes previews for files beginning with ~/
Previewer will now show directories
Fix if clause with vim.fn.executable
Diffstat (limited to 'lua/telescope/builtin.lua')
| -rw-r--r-- | lua/telescope/builtin.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/telescope/builtin.lua b/lua/telescope/builtin.lua index 45596fe..92e78db 100644 --- a/lua/telescope/builtin.lua +++ b/lua/telescope/builtin.lua @@ -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 |
