diff options
| author | Robert Günzler <r@gnzler.io> | 2022-08-17 15:28:18 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-08-17 15:28:18 +0200 |
| commit | 6310409a0113016379fd9d77e1a20ee94445505a (patch) | |
| tree | 03ffbf9c5d44443fa82e30d08772ae89da24cf3f /.vim | |
| parent | 4727b38cfeb30ac72635a9854a26ef13bc63592b (diff) | |
vim: use expandcmd in jobrun helper
Diffstat (limited to '.vim')
| -rw-r--r-- | .vim/lua/job.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.vim/lua/job.lua b/.vim/lua/job.lua index bf02fc6..cb5e95a 100644 --- a/.vim/lua/job.lua +++ b/.vim/lua/job.lua @@ -91,6 +91,11 @@ function M.jobstart(opts) end end) + -- run vim.fn.expand() on all args + for i=1, #opts.args do + opts.args[i] = vim.fn.expandcmd(opts.args[i]) + end + local j = Job:new(opts) j:start() |