Fix Editor::newest_selection

Max Brunsfeld and Nathan Sobo created

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Change summary

crates/editor/src/editor.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/editor/src/editor.rs 🔗

@@ -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()