Add comment, statusline + commandline = 2

pull/310/head
wojciechkepka 3 years ago committed by Blaž Hrastnik
parent 0882712b45
commit fc39a6c40d

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

Loading…
Cancel
Save