From 75a9bb6e9c543d8c591e55f6147097017f6afd01 Mon Sep 17 00:00:00 2001 From: glepnir Date: Sun, 2 Jun 2024 18:31:33 +0800 Subject: [PATCH] fix when leftcol outof screen on emptyline close #22 --- lua/indentmini/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/indentmini/init.lua b/lua/indentmini/init.lua index 4bce0d1..2b31cdb 100644 --- a/lua/indentmini/init.lua +++ b/lua/indentmini/init.lua @@ -109,7 +109,7 @@ local function on_line(_, _, bufnr, row) if col >= cache.leftcol and non_or_space(row, col + 1) then opt.config.virt_text[1][2] = higroup if is_empty and col > 0 then - opt.config.virt_text_win_col = i - 1 + opt.config.virt_text_win_col = i - 1 - cache.leftcol end buf_set_extmark(bufnr, ns, row, col, opt.config) opt.config.virt_text_win_col = nil