diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-02-09 18:25:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-09 18:25:57 +0100 |
| commit | 3a7fa41857394cd2d90d00891413c12fada039c3 (patch) | |
| tree | bff862cb4e8f3623fe167f1105e9f1dac72dfb95 /lua/telescope/utils.lua | |
| parent | 993e383dd5356bf10c5cf2b5d0ac88f9c7746181 (diff) | |
fix: all git builtin respect cwd now (#517)
Diffstat (limited to 'lua/telescope/utils.lua')
| -rw-r--r-- | lua/telescope/utils.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua index 188c1ea..4606e19 100644 --- a/lua/telescope/utils.lua +++ b/lua/telescope/utils.lua @@ -193,13 +193,13 @@ function utils.display_termcodes(str) return str:gsub(string.char(9), "<TAB>"):gsub("", "<C-F>"):gsub(" ", "<Space>") end -function utils.get_os_command_output(cmd) +function utils.get_os_command_output(cmd, cwd) if type(cmd) ~= "table" then print('Telescope: [get_os_command_output]: cmd has to be a table') return {} end local command = table.remove(cmd, 1) - return Job:new({ command = command, args = cmd }):sync() + return Job:new({ command = command, args = cmd, cwd = cwd }):sync() end utils.strdisplaywidth = (function() |
