Fix Editor::newest_selection
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
f5d4e26799
commit
3040cfece1
@@ -3207,7 +3207,7 @@ impl Editor {
|
||||
.or_else(|| {
|
||||
self.selections
|
||||
.iter()
|
||||
.min_by_key(|s| s.id)
|
||||
.max_by_key(|s| s.id)
|
||||
.map(|selection| self.resolve_selection(selection, snapshot))
|
||||
})
|
||||
.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user