diff options
author | Ivan Tham | 2021-06-29 16:17:16 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-07-04 09:01:59 +0000 |
commit | 9effe71b7d2133f18545d182cef384ea3fd1c0ff (patch) | |
tree | d8267e162be7079162cb534e63f507a370061912 /helix-term/src | |
parent | 4c190ec9d9da49adedf2e14cd813725d979b42e8 (diff) |
Apply suggestions from blaz for infobox
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/info.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/helix-term/src/ui/info.rs b/helix-term/src/ui/info.rs index 085a2d9b..c5709356 100644 --- a/helix-term/src/ui/info.rs +++ b/helix-term/src/ui/info.rs @@ -11,11 +11,7 @@ impl Component for Info { let (w, h) = (*width + 2, *height + 2); // -2 to subtract command line + statusline. a bit of a hack, because of splits. let area = Rect::new(viewport.width - w, viewport.height - h - 2, w, h); - let margin = Margin { - vertical: 1, - horizontal: 1, - }; - let Rect { x, y, .. } = area.inner(&margin); + let Rect { x, y, .. } = block.inner(area); for (y, line) in (y..).zip(self.text.lines()) { surface.set_string(x, y, line, Style::default()); } |