diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 8d99bd0e47..8cb2891fa2 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -2603,7 +2603,7 @@ impl Editor { pub fn move_down(&mut self, _: &MoveDown, cx: &mut ViewContext) { if let Some(completion_state) = &mut self.completion_state { - if completion_state.selected_item + 1 < completion_state.completions.len() { + if completion_state.selected_item + 1 < completion_state.matches.len() { completion_state.selected_item += 1; completion_state .list