fix(scope): add indent to __eq

This commit is contained in:
Folke Lemaitre 2024-12-14 21:39:45 +01:00
parent a7608b13ea
commit be2779e942
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -121,7 +121,11 @@ function Scope:new(scope, opts)
end
function Scope:__eq(other)
return other and self.buf == other.buf and self.from == other.from and self.to == other.to
return other
and self.buf == other.buf
and self.from == other.from
and self.to == other.to
and self.indent == other.indent
end
---@generic T: snacks.scope.Scope