zed/src/editor/buffer/point.rs 🔗
@@ -72,7 +72,7 @@ impl Sub for Point {
impl<'a> AddAssign<&'a Self> for Point {
fn add_assign(&mut self, other: &'a Self) {
- *self += *self;
+ *self += *other;
}
}
Max Brunsfeld created
zed/src/editor/buffer/point.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -72,7 +72,7 @@ impl Sub for Point {
impl<'a> AddAssign<&'a Self> for Point {
fn add_assign(&mut self, other: &'a Self) {
- *self += *self;
+ *self += *other;
}
}