mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
test: fix tests
This commit is contained in:
parent
6c7ef7e27a
commit
206d208018
3 changed files with 16 additions and 15 deletions
|
@ -182,7 +182,7 @@ function Task:spawn(cmd, opts)
|
|||
local running = true
|
||||
---@param output string
|
||||
function opts.on_exit(ok, output)
|
||||
self:log(output, ok and vim.log.levels.DEBUG or vim.log.levels.ERROR)
|
||||
self:log(vim.trim(output), ok and vim.log.levels.DEBUG or vim.log.levels.ERROR)
|
||||
if on_exit then
|
||||
pcall(on_exit, ok, output)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue