fix(indent): only render adjusted top/bottom. See #268

This commit is contained in:
Folke Lemaitre 2024-12-12 18:27:27 +01:00
parent 4b8377c83a
commit 54294cba6a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -237,7 +237,7 @@ function M.on_win(win, buf, top, bottom)
-- Calculate and render indents
local indents = state.indents
vim.api.nvim_buf_call(buf, function()
for l = top, bottom do
for l = state.top, state.bottom do
local indent = indents[l]
if not indent then
stats.indents = stats.indents + 1