Skip to content

Commit

Permalink
Add comment, statusline + commandline = 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vv9k authored and archseer committed Jun 20, 2021
1 parent 0882712 commit fc39a6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helix-term/src/ui/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ impl Component for Completion {

let half = area.height / 2;
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
>= (cx.editor.tree.area().height - height - 1/* statusline */)
>= (cx.editor.tree.area().height - height - 2/* statusline + commandline */)
{
0
} else {
Expand Down

0 comments on commit fc39a6c

Please sign in to comment.