WIP
This commit is contained in:
@@ -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, &());
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user