diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 8d99bd0e475c4e57c0fa0cdb413658c006bb10a5..8cb2891fa2cd0118691cd76218198f2b0bc8367a 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