fix(ui): diagnostics without status

This commit is contained in:
Folke Lemaitre 2024-06-26 22:44:57 +02:00
parent a0a51c06c2
commit 249902ab31
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ end
function Task:status()
local ret = self._log[#self._log]
return ret and ret.msg or ""
local msg = ret and vim.trim(ret.msg) or ""
return msg ~= "" and msg or nil
end
function Task:has_started()