From 249902ab3194226efec0dbc3e000e758c43b4714 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 26 Jun 2024 22:44:57 +0200 Subject: [PATCH] fix(ui): diagnostics without status --- lua/lazy/manage/task/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/lazy/manage/task/init.lua b/lua/lazy/manage/task/init.lua index d561151..6693adc 100644 --- a/lua/lazy/manage/task/init.lua +++ b/lua/lazy/manage/task/init.lua @@ -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()