fix: highlight individual lines

This commit is contained in:
Jakub F. Bortlík
2026-02-27 14:40:16 +01:00
parent d7ddf1cb5f
commit c2e76d0937
2 changed files with 54 additions and 18 deletions

View File

@@ -309,8 +309,8 @@ end
M.get_longest_string = function(list)
local longest = 0
for _, v in pairs(list) do
if string.len(v) > longest then
longest = string.len(v)
if vim.fn.strcharlen(v) > longest then
longest = vim.fn.strcharlen(v)
end
end
return longest