1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 11:30:06 +08:00

fix(messletters): make bubble_num avoid nil

This commit is contained in:
Eric Wong 2024-12-08 19:49:08 +08:00
parent 3683a06c8c
commit 3e92a97c55

View File

@ -20,9 +20,8 @@ function M.circled_letter(c)
end
function M.bubble_num(num, t)
local list = {}
table.insert(list, { '', '', '', '', '', '', '', '', '', '' })
table.insert(list, { '', '', '', '', '', '', '', '', '', '' })
table.insert(list, { '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''})
table.insert(list, { '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''})
table.insert(list, { '', '', '', '', '', '', '', '', '', '' })
local n = ''
@ -31,7 +30,7 @@ function M.bubble_num(num, t)
n = list[t + 1][num]
end)
return n
return n or ''
end
function M.circled_num(num, t)