Skip to content

Commit

Permalink
fix(ui): diagnostics without status
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 26, 2024
1 parent a0a51c0 commit 249902a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lazy/manage/task/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 249902a

Please sign in to comment.