summaryrefslogtreecommitdiff
path: root/lua/telescope/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope/utils.lua')
-rw-r--r--lua/telescope/utils.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua
index ecd7fd4..4470c56 100644
--- a/lua/telescope/utils.lua
+++ b/lua/telescope/utils.lua
@@ -199,7 +199,11 @@ function utils.get_os_command_output(cmd, cwd)
return {}
end
local command = table.remove(cmd, 1)
- return Job:new({ command = command, args = cmd, cwd = cwd }):sync()
+ local stderr = {}
+ local stdout, ret = Job:new({ command = command, args = cmd, cwd = cwd, on_stderr = function(_, data)
+ table.insert(stderr, data)
+ end }):sync()
+ return stdout, ret, stderr
end
utils.strdisplaywidth = (function()