Skip to content

Commit

Permalink
fix area.inner() param type
Browse files Browse the repository at this point in the history
  • Loading branch information
kyfanc committed Aug 27, 2024
1 parent 69fb470 commit f6aa0e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/ui/lsp/hover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const SEPARATOR_HEIGHT: u16 = 1;
impl Component for Hover {
fn render(&mut self, area: Rect, surface: &mut Buffer, cx: &mut Context) {
let margin = Margin::horizontal(1);
let area = area.inner(&margin);
let area = area.inner(margin);

let (Some(header), Some(contents)) = (self.header.as_ref(), self.contents.as_ref()) else {
log::info!("markdown not ready");
Expand Down

0 comments on commit f6aa0e4

Please sign in to comment.