From d0da62f6fd8c6e6d4026598fed8bad228d517bf0 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 4 Sep 2023 22:31:29 +0200 Subject: [PATCH] fix: if cursor is long 0, add 1 idk how to display a bar in vim since it's a terminal --- src/codemp.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codemp.lua b/src/codemp.lua index 101cf29..47ee16a 100644 --- a/src/codemp.lua +++ b/src/codemp.lua @@ -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])