mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-25 17:04:50 +01:00
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:
parent
2b5fd19a0e
commit
d0da62f6fd
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ local function buffer_set_content(buf, content)
|
|||
end
|
||||
|
||||
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
|
||||
if i == start[1] and i == fini[1] then
|
||||
vim.api.nvim_buf_add_highlight(buf, ns, group, i, start[2], fini[2])
|
||||
|
|
Loading…
Reference in a new issue