Skip to content

Commit

Permalink
fix: avoid nil index with numhl sign
Browse files Browse the repository at this point in the history
  • Loading branch information
luukvbaal committed Nov 25, 2023
1 parent e8ab7ce commit e28e3ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/statuscol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ local function place_signs(win, signs)
for i = 1, #signs do
local s = signs[i][4]
local name = s.sign_name or s.sign_text and s.sign_text..s.sign_hl_group
if not name then goto nextsign end
if not sign_cache[name] then sign_cache_add(win, {signs[i]}) end
local sign = sign_cache[name]
if not sign.segment then goto nextsign end
Expand Down

0 comments on commit e28e3ab

Please sign in to comment.