on master help sign in
Add comment, statusline + commandline = 2
fc39a6cwojciechkepka
helix-term/src/ui/completion.rs+2−1
@@ -292,8 +292,9 @@ impl Component for Completion {
292
292
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 */)
297 {
298 {
298 0
299 0
299 } else {
300 } else {