diff --git a/zed/src/sum_tree/cursor.rs b/zed/src/sum_tree/cursor.rs index 5e1624aa87..649b3ad28a 100644 --- a/zed/src/sum_tree/cursor.rs +++ b/zed/src/sum_tree/cursor.rs @@ -413,7 +413,12 @@ where D: Dimension<'a, T::Summary>, { if let Some(target) = target { - debug_assert!(target.cmp(&self.seek_dimension, cx) >= Ordering::Equal); + debug_assert!( + target.cmp(&self.seek_dimension, cx) >= Ordering::Equal, + "cannot seek backward from {:?} to {:?}", + self.seek_dimension, + target + ); } if !self.did_seek {