on master help sign in
Add comment, statusline + commandline = 2
commitfc39a6c40df7d4a28994db762554815c37470073 authorwojciechkepka <wojtek.kepka@protonmail.com> dateSun 20 Jun 2021, 12:35 (5 years ago) parent0882712
1 file changed+2−1
helix-term/src/ui/completion.rs+2−1
helix-term/src/ui/completion.rs+2−1
@@ -292,8 +292,9 @@ impl Component for Completion {
292292
293293 let half = area.height / 2;
294294 let height = 15.min(half);
295+ // we want to make sure the cursor is visible (not hidden behind the documentation)
295296 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 */)
297298 {
298299 0
299300 } else {