Skip to content

Commit

Permalink
return cmd table
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-x committed Oct 31, 2023
1 parent e41c336 commit 3fa8c50
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lua/go/asyncmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,15 @@ M.runjob = function(cmd, runner, args, efm)
if event == 'exit' then
log('exit')
sprite.on_close()
if type(cmd) == 'table' then
cmd = table.concat(cmd, ' ')
end
local info = cmd
local info = cmdstr
local level = vim.log.levels.INFO
if #errorlines > 0 then
if #lines > 0 then
vim.list_extend(errorlines, lines)
end
trace(errorlines)
vim.fn.setqflist({}, ' ', {
title = cmd,
title = info,
lines = errorlines,
efm = efm,
})
Expand All @@ -357,13 +354,13 @@ M.runjob = function(cmd, runner, args, efm)
if _GO_NVIM_CFG.test_efm == true then
efm = require('go.gotest').efm()
opts = {
title = cmd,
title = info,
lines = lines,
efm = efm,
}
else
opts = {
title = cmd,
title = info,
lines = lines,
}
end
Expand Down Expand Up @@ -407,7 +404,7 @@ M.runjob = function(cmd, runner, args, efm)
stderr_buffered = true,
})
_GO_NVIM_CFG.on_jobstart(cmdstr)
return cmdstr
return cmd
end

M.stopjob = function(id)
Expand Down

0 comments on commit 3fa8c50

Please sign in to comment.