fix: if cursor is long 0, add 1

idk how to display a bar in vim since it's a terminal
This commit is contained in:
əlemi 2023-09-04 22:31:29 +02:00
parent 2b5fd19a0e
commit d0da62f6fd

View file

@ -96,6 +96,7 @@ local function buffer_set_content(buf, content)
end end
local function multiline_highlight(buf, ns, group, start, fini) local function multiline_highlight(buf, ns, group, start, fini)
if start[2] == fini[2] then fini[2] = fini[2] + 1 end
for i=start[1],fini[1] do for i=start[1],fini[1] do
if i == start[1] and i == fini[1] then if i == start[1] and i == fini[1] then
vim.api.nvim_buf_add_highlight(buf, ns, group, i, start[2], fini[2]) vim.api.nvim_buf_add_highlight(buf, ns, group, i, start[2], fini[2])