Compare commits
No commits in common. "e53ddcad9a04d2678de37b87bb132eb0ac05334b" and "e661ea78e836eca09e01af1ccc24e94258817e9b" have entirely different histories.
e53ddcad9a
...
e661ea78e8
1 changed files with 4 additions and 10 deletions
|
|
@ -91,17 +91,14 @@ function M.compile(bufnr, name, provider, ctx)
|
||||||
table.concat(reload_cmd, ' ')
|
table.concat(reload_cmd, ' ')
|
||||||
)
|
)
|
||||||
|
|
||||||
local obj
|
local obj = vim.system(
|
||||||
obj = vim.system(
|
|
||||||
reload_cmd,
|
reload_cmd,
|
||||||
{
|
{
|
||||||
cwd = cwd,
|
cwd = cwd,
|
||||||
env = provider.env,
|
env = provider.env,
|
||||||
},
|
},
|
||||||
vim.schedule_wrap(function(result)
|
vim.schedule_wrap(function(result)
|
||||||
if active[bufnr] and active[bufnr].obj == obj then
|
|
||||||
active[bufnr] = nil
|
active[bufnr] = nil
|
||||||
end
|
|
||||||
if not vim.api.nvim_buf_is_valid(bufnr) then
|
if not vim.api.nvim_buf_is_valid(bufnr) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
@ -183,17 +180,14 @@ function M.compile(bufnr, name, provider, ctx)
|
||||||
|
|
||||||
log.dbg('compiling buffer %d with provider "%s": %s', bufnr, name, table.concat(cmd, ' '))
|
log.dbg('compiling buffer %d with provider "%s": %s', bufnr, name, table.concat(cmd, ' '))
|
||||||
|
|
||||||
local obj
|
local obj = vim.system(
|
||||||
obj = vim.system(
|
|
||||||
cmd,
|
cmd,
|
||||||
{
|
{
|
||||||
cwd = cwd,
|
cwd = cwd,
|
||||||
env = provider.env,
|
env = provider.env,
|
||||||
},
|
},
|
||||||
vim.schedule_wrap(function(result)
|
vim.schedule_wrap(function(result)
|
||||||
if active[bufnr] and active[bufnr].obj == obj then
|
|
||||||
active[bufnr] = nil
|
active[bufnr] = nil
|
||||||
end
|
|
||||||
if not vim.api.nvim_buf_is_valid(bufnr) then
|
if not vim.api.nvim_buf_is_valid(bufnr) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue