fix(view): resolve LuaLS warnings in reapply_highlights

This commit is contained in:
Barrett Ruth 2026-03-18 00:17:53 -04:00
parent 7778ad91b8
commit 6845cfe64a
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -547,8 +547,12 @@ M.reapply_highlights = function(bufnr)
end
local bufname = vim.api.nvim_buf_get_name(bufnr)
local scheme = util.parse_url(bufname)
if not scheme then
return
end
local column_defs = columns.get_supported_columns(scheme)
local col_width = vim.deepcopy(sess.col_width)
---@cast col_width integer[]
local col_align = sess.col_align
local buf_lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, true)
local line_table = {}