mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
Fix panic in vim mode (#38437)
Release Notes: - vim: Fixed a rare panic in search
This commit is contained in:
parent
530225a06a
commit
82e1e5b7ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue