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/prompt.rs | |
parent | ce85b9716df5e1ea804994202687f19cd711ae1b (diff) |
Refactor Margin for fine grained control (#2727)
Diffstat (limited to 'helix-term/src/ui/prompt.rs')
-rw-r--r-- | helix-term/src/ui/prompt.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs index 64154bae..7744a161 100644 --- a/helix-term/src/ui/prompt.rs +++ b/helix-term/src/ui/prompt.rs @@ -430,10 +430,7 @@ impl Prompt { .borders(Borders::ALL) .border_style(background); - let inner = block.inner(area).inner(&Margin { - vertical: 0, - horizontal: 1, - }); + let inner = block.inner(area).inner(&Margin::horizontal(1)); block.render(area, surface); text.render(inner, surface, cx); |