Fix typo in Point::add_assign

Max Brunsfeld created

Change summary

zed/src/editor/buffer/point.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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;
     }
 }