This commit is contained in:
Liu Zehao 2025-06-01 10:33:32 +00:00 committed by GitHub
commit 2c2ed9e9d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,7 +108,9 @@ function M.enable(opts)
buf = buf,
}
end
if scope == nil then
return
end
Snacks.animate(scopes_anim[win].from, scope.from, function(v)
if not scopes_anim[win] or not vim.api.nvim_win_is_valid(win) then
return