mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Fix Editor::newest_selection
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
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()
|
||||
|
Loading…
Reference in New Issue
Block a user