diff options
author | ath3 | 2023-12-19 01:17:12 +0000 |
---|---|---|
committer | GitHub | 2023-12-19 01:17:12 +0000 |
commit | 9ba691cd3a8ffb021cb194bd3185317a65c3194a (patch) | |
tree | 915ecd2d667ad492317e1a1748c2ba6f57983bcb /helix-term/src/ui/lsp.rs | |
parent | 06d7dc628e5a5dac9bbfe4802c3b00754a9f7731 (diff) |
Support drawing popup frame (#4313)
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'helix-term/src/ui/lsp.rs')
-rw-r--r-- | helix-term/src/ui/lsp.rs | 4 |
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)); |