Skip to content

Commit

Permalink
fix when leftcol outof screen on emptyline close #22
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Jun 2, 2024
1 parent d1ef38c commit 75a9bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/indentmini/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75a9bb6

Please sign in to comment.