Skip to content

Commit 249902a

Browse files
committed
fix(ui): diagnostics without status
1 parent a0a51c0 commit 249902a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/lazy/manage/task/init.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ end
7171

7272
function Task:status()
7373
local ret = self._log[#self._log]
74-
return ret and ret.msg or ""
74+
local msg = ret and vim.trim(ret.msg) or ""
75+
return msg ~= "" and msg or nil
7576
end
7677

7778
function Task:has_started()

0 commit comments

Comments
 (0)