mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +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(|| {
|
||||
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 a new issue