Skip to content

Commit

Permalink
fix(nui): dont trigger autocmds when doing zt
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 30, 2022
1 parent 7816fcd commit d176765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/util/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function M.scroll(win, delta)

vim.defer_fn(function()
vim.api.nvim_buf_call(buf, function()
vim.api.nvim_command("normal! " .. top .. "zt")
vim.api.nvim_command("noautocmd silent! normal! " .. top .. "zt")
vim.cmd([[do WinScrolled]])
end)
end, 0)
Expand Down

0 comments on commit d176765

Please sign in to comment.