mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-07 12:18:10 +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
|
-- Calculate and render indents
|
||||||
local indents = state.indents
|
local indents = state.indents
|
||||||
vim.api.nvim_buf_call(buf, function()
|
vim.api.nvim_buf_call(buf, function()
|
||||||
for l = top, bottom do
|
for l = state.top, state.bottom do
|
||||||
local indent = indents[l]
|
local indent = indents[l]
|
||||||
if not indent then
|
if not indent then
|
||||||
stats.indents = stats.indents + 1
|
stats.indents = stats.indents + 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue