Change language:⚓: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:
parent
f6805eb802
commit
ab631cf6c3
10 changed files with 33 additions and 62 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue