Don't insert headers in MultiBuffer
This lays the groundwork to insert headers in the block map instead.
This commit is contained in:
@@ -38,7 +38,7 @@ impl Point {
|
||||
|
||||
pub fn saturating_sub(self, other: Self) -> Self {
|
||||
if self < other {
|
||||
Point::zero()
|
||||
Self::zero()
|
||||
} else {
|
||||
self - other
|
||||
}
|
||||
|
||||
@@ -26,6 +26,14 @@ impl PointUtf16 {
|
||||
pub fn is_zero(&self) -> bool {
|
||||
self.row == 0 && self.column == 0
|
||||
}
|
||||
|
||||
pub fn saturating_sub(self, other: Self) -> Self {
|
||||
if self < other {
|
||||
Self::zero()
|
||||
} else {
|
||||
self - other
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Add<&'a Self> for PointUtf16 {
|
||||
|
||||
Reference in New Issue
Block a user