mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(util): make sure to always return an icon
This commit is contained in:
parent
90cfaa2215
commit
ca7188c531
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ function M.icon(name, cat)
|
|||
}
|
||||
for _, fn in ipairs(try) do
|
||||
local ret = { pcall(fn) }
|
||||
if ret[1] then
|
||||
if ret[1] and ret[2] then
|
||||
return ret[2], ret[3]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue