This commit is contained in:
Nathan Sobo
2021-07-24 08:40:48 -06:00
parent 3bf47be51e
commit 9edc8b9a06
4 changed files with 80 additions and 98 deletions
+1 -1
View File
@@ -584,7 +584,7 @@ impl Snapshot {
}
}
pub fn highlighted_chunks(&mut self, range: Range<OutputOffset>) -> HighlightedChunks {
pub fn highlighted_chunks(&self, range: Range<OutputOffset>) -> HighlightedChunks {
let mut transform_cursor = self.transforms.cursor::<OutputOffset, usize>();
transform_cursor.seek(&range.end, Bias::Right, &());
+1 -1
View File
@@ -144,7 +144,7 @@ impl Snapshot {
}
}
pub fn highlighted_chunks(&mut self, range: Range<OutputPoint>) -> HighlightedChunks {
pub fn highlighted_chunks(&self, range: Range<OutputPoint>) -> HighlightedChunks {
let (input_start, expanded_char_column, to_next_stop) =
self.to_input_point(range.start, Bias::Left);
let input_start = self.input.to_output_offset(input_start);