@@ -292,8 +292,9 @@ impl Component for Completion {
293 let half = area.height / 2;
293 let half = area.height / 2;
294 let height = 15.min(half);
294 let height = 15.min(half);
295+ // we want to make sure the cursor is visible (not hidden behind the documentation)
295 let y = if cursor_pos + view.area.y
296 let y = if cursor_pos + view.area.y
296− >= (cx.editor.tree.area().height - height - 1/* statusline */)
297+ >= (cx.editor.tree.area().height - height - 2/* statusline + commandline */)