Change language::anchor::min() to a constant
Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Antonio Scandurra
Nathan Sobo
parent
f6805eb802
commit
ab631cf6c3
@@ -4,8 +4,6 @@ pub mod items;
|
||||
pub mod movement;
|
||||
mod multi_buffer;
|
||||
|
||||
pub mod repro;
|
||||
|
||||
#[cfg(test)]
|
||||
mod test;
|
||||
|
||||
@@ -4422,13 +4420,7 @@ impl Editor {
|
||||
.into_iter()
|
||||
.flat_map(|(_, ranges)| ranges),
|
||||
)
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let snapshot = this.buffer.read(cx).snapshot(cx);
|
||||
let point_ranges = ranges
|
||||
.iter()
|
||||
.map(|range| range.to_point(&snapshot))
|
||||
.collect::<Vec<_>>();
|
||||
.collect();
|
||||
|
||||
this.highlight_text::<Rename>(
|
||||
ranges,
|
||||
|
||||
Reference in New Issue
Block a user