mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-06 03:38:16 +00:00
fix(indent): only render adjusted top/bottom. See #268
This commit is contained in:
parent
4b8377c83a
commit
54294cba6a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue