diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-22 11:04:22 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-22 11:04:22 +0800 |
commit | fd8c441af3739027b7959a21b530ddb4da455f73 (patch) | |
tree | f518f89741fd8ac1d4b1965a2ee1988239de7d0a /src | |
parent | 4812206eab68ea5588d93f9ea0589f9e772ee5ad (diff) |
Switch to crosstermion 0.3 for tui 0.10 support
Diffstat (limited to 'src')
-rw-r--r-- | src/interactive/widgets/help.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interactive/widgets/help.rs b/src/interactive/widgets/help.rs index d0572df..a26bc70 100644 --- a/src/interactive/widgets/help.rs +++ b/src/interactive/widgets/help.rs @@ -192,6 +192,7 @@ impl HelpPane { .title(title) .border_style(*border_style) .borders(Borders::ALL); + let inner_block_area = block.inner(area); block.render(area, buf); if *has_focus { @@ -211,7 +212,7 @@ impl HelpPane { } } - let area = margin(block.inner(area), 1); + let area = margin(inner_block_area, 1); self.scroll = self.scroll.min(num_lines.saturating_sub(area.height)); Paragraph::new(Text::from(Spans::from(texts))) .scroll((self.scroll, 0)) |