From bd52d2d77ec122083ad33987107e010b3509a6be Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Sun, 31 Jul 2022 23:10:56 +0600 Subject: [PATCH] fix: notice not being shown in lualine if it doesn't end with \n --- lua/lualine/utils/notices.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lualine/utils/notices.lua b/lua/lualine/utils/notices.lua index 4d8001f..2b5b8aa 100644 --- a/lua/lualine/utils/notices.lua +++ b/lua/lualine/utils/notices.lua @@ -12,6 +12,9 @@ function M.add_notice(notice) if type(notice) == 'string' then notice = vim.split(notice, '\n') end + if notice[#notice] ~= '' then + notice[#notice+1] = '' + end table.insert(notices, notice) end