mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +00:00
Fix Editor::newest_selection
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
f5d4e26799
commit
3040cfece1
1 changed files with 1 additions and 1 deletions
|
@ -3207,7 +3207,7 @@ impl Editor {
|
||||||
.or_else(|| {
|
.or_else(|| {
|
||||||
self.selections
|
self.selections
|
||||||
.iter()
|
.iter()
|
||||||
.min_by_key(|s| s.id)
|
.max_by_key(|s| s.id)
|
||||||
.map(|selection| self.resolve_selection(selection, snapshot))
|
.map(|selection| self.resolve_selection(selection, snapshot))
|
||||||
})
|
})
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
|
Loading…
Reference in a new issue