Implement BlockSnapshot::line_len, use it in DisplayMap

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-11-17 14:56:05 -08:00
co-authored by Nathan Sobo
parent 00b5cc472e
commit 707ffe8ff3
4 changed files with 41 additions and 15 deletions
@@ -902,10 +902,6 @@ impl WrapPoint {
self.0.row
}
pub fn column(self) -> u32 {
self.0.column
}
pub fn row_mut(&mut self) -> &mut u32 {
&mut self.0.row
}