diff options
author | Blaž Hrastnik | 2022-02-21 14:23:20 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-02-21 14:24:03 +0000 |
commit | 24f86017a6de5634b17cdc24af1edd6293b33999 (patch) | |
tree | a68f680289582e2e3cb7697e56825b49542290b1 /helix-term/src | |
parent | 865881ba19a2d964d9114352dbf474ed4794f688 (diff) |
fix: ui: Markdown popups stopped taking vertical padding into account
Fix #1688
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/markdown.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/markdown.rs b/helix-term/src/ui/markdown.rs index d1835be6..e6f2316e 100644 --- a/helix-term/src/ui/markdown.rs +++ b/helix-term/src/ui/markdown.rs @@ -256,6 +256,6 @@ impl Component for Markdown { let max_text_width = (viewport.0 - padding).min(120); let (width, height) = crate::ui::text::required_size(&contents, max_text_width); - Some((width + padding * 2, height)) + Some((width + padding, height + padding)) } } |