mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-10 17:34:34 +02:00
fix(ui): properly handly signs without name. Fixes #1612
This commit is contained in:
parent
fb110e76d8
commit
0fcdbe20da
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ function M.get_signs(buf, lnum)
|
|||
)
|
||||
for _, extmark in pairs(extmarks) do
|
||||
signs[#signs + 1] = {
|
||||
name = extmark[4].sign_hl_group,
|
||||
name = extmark[4].sign_hl_group or "",
|
||||
text = extmark[4].sign_text,
|
||||
texthl = extmark[4].sign_hl_group,
|
||||
priority = extmark[4].priority,
|
||||
|
@ -93,7 +93,7 @@ function M.statuscolumn()
|
|||
---@type Sign?,Sign?,Sign?
|
||||
local left, right, fold
|
||||
for _, s in ipairs(M.get_signs(buf, vim.v.lnum)) do
|
||||
if s.name:find("GitSign") then
|
||||
if s.name and s.name:find("GitSign") then
|
||||
right = s
|
||||
else
|
||||
left = s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue