fix: notice not being shown in lualine if it doesn't end with \n
This commit is contained in:
parent
6d11f9f508
commit
bd52d2d77e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue