Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix panic in vim mode (#38437)
Conrad Irwin82e1e5b7ac6a
diff --git a/crates/vim/src/normal/search.rs b/crates/vim/src/normal/search.rsindex 6da18164e42..1023375cacc 100644--- a/crates/vim/src/normal/search.rs+++ b/crates/vim/src/normal/search.rs@@ -222,7 +222,7 @@ impl Vim {let mut count = self.search.count;let direction = self.search.direction;search_bar.has_active_match();- let new_head = new_selections.last().unwrap().start;+ let new_head = new_selections.last()?.start;let is_different_head = self.search.prior_selections