aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/completion.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-08-19 04:19:15 +0000
committerBlaž Hrastnik2021-08-19 06:59:03 +0000
commit557fd86e71062a1de83d0011f8208cf2fce0dd5f (patch)
treee6dd860d2e2578ca5e21d25a18e20da9d6dd6c66 /helix-term/src/ui/completion.rs
parent9776553ad057c12ccee8c0d54d419b159977f34e (diff)
Extract view.inner_area(), simplify render_focused_view_elements
Diffstat (limited to 'helix-term/src/ui/completion.rs')
-rw-r--r--helix-term/src/ui/completion.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs
index 985d4e48..90657764 100644
--- a/helix-term/src/ui/completion.rs
+++ b/helix-term/src/ui/completion.rs
@@ -314,7 +314,7 @@ 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
+ let y = if cursor_pos + area.y
>= (cx.editor.tree.area().height - height - 2/* statusline + commandline */)
{
0