mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-04 11:27:46 +03:00
tui: Constify functions, shrink Margin representation
This commit is contained in:
parent
e94735bbd3
commit
dfcd814389
14 changed files with 102 additions and 112 deletions
|
@ -351,7 +351,7 @@ impl Component for Markdown {
|
|||
.scroll((cx.scroll.unwrap_or_default() as u16, 0));
|
||||
|
||||
let margin = Margin::all(1);
|
||||
par.render(area.inner(&margin), surface);
|
||||
par.render(area.inner(margin), surface);
|
||||
}
|
||||
|
||||
fn required_size(&mut self, viewport: (u16, u16)) -> Option<(u16, u16)> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue