From e28e3abfb8bc95ac50b64fc6ef6f0f1155f62235 Mon Sep 17 00:00:00 2001 From: Luuk van Baal Date: Sat, 25 Nov 2023 22:05:15 +0100 Subject: [PATCH] fix: avoid nil index with numhl sign --- lua/statuscol.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/statuscol.lua b/lua/statuscol.lua index d39795c..25e5870 100644 --- a/lua/statuscol.lua +++ b/lua/statuscol.lua @@ -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