diff options
author | Gokul Soumya | 2022-06-21 16:52:08 +0000 |
---|---|---|
committer | GitHub | 2022-06-21 16:52:08 +0000 |
commit | 8e8367eea6ff146c7e1097af153398832691e078 (patch) | |
tree | 02e137d840c02eb99b926c3bb6f8349902b0946a /helix-term/src/ui/info.rs | |
parent | ce85b9716df5e1ea804994202687f19cd711ae1b (diff) |
Refactor Margin for fine grained control (#2727)
Diffstat (limited to 'helix-term/src/ui/info.rs')
-rw-r--r-- | helix-term/src/ui/info.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-term/src/ui/info.rs b/helix-term/src/ui/info.rs index 272244c1..cc6b7483 100644 --- a/helix-term/src/ui/info.rs +++ b/helix-term/src/ui/info.rs @@ -27,10 +27,7 @@ impl Component for Info { .borders(Borders::ALL) .border_style(popup_style); - let margin = Margin { - vertical: 0, - horizontal: 1, - }; + let margin = Margin::horizontal(1); let inner = block.inner(area).inner(&margin); block.render(area, surface); |