vim: Fix search in the Assistant (#20258)
Closes #17704 Release Notes: - vim: Fix search in the assistant panel
This commit is contained in:
parent
c527f2e212
commit
4bf6fb217e
5 changed files with 48 additions and 17 deletions
|
@ -576,14 +576,9 @@ impl Vim {
|
|||
|
||||
pub fn select_match(&mut self, direction: Direction, cx: &mut ViewContext<Self>) {
|
||||
let count = self.take_count(cx).unwrap_or(1);
|
||||
let Some(workspace) = self
|
||||
.editor
|
||||
.upgrade()
|
||||
.and_then(|editor| editor.read(cx).workspace())
|
||||
else {
|
||||
let Some(pane) = self.pane(cx) else {
|
||||
return;
|
||||
};
|
||||
let pane = workspace.read(cx).active_pane().clone();
|
||||
let vim_is_normal = self.mode == Mode::Normal;
|
||||
let mut start_selection = 0usize;
|
||||
let mut end_selection = 0usize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue