aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/lsp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/ui/lsp.rs')
-rw-r--r--helix-term/src/ui/lsp.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/ui/lsp.rs b/helix-term/src/ui/lsp.rs
index 880df6d8..7037b155 100644
--- a/helix-term/src/ui/lsp.rs
+++ b/helix-term/src/ui/lsp.rs
@@ -92,7 +92,9 @@ impl Component for SignatureHelp {
Some(doc) => Markdown::new(doc.clone(), Arc::clone(&self.config_loader)),
};
let sig_doc = sig_doc.parse(Some(&cx.editor.theme));
- let sig_doc_area = area.clip_top(sig_text_area.height + 2);
+ let sig_doc_area = area
+ .clip_top(sig_text_area.height + 2)
+ .clip_bottom(u16::from(cx.editor.popup_border()));
let sig_doc_para = Paragraph::new(sig_doc)
.wrap(Wrap { trim: false })
.scroll((cx.scroll.unwrap_or_default() as u16, 0));