mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 01:46:18 +04:00
fix area.inner() param type
This commit is contained in:
parent
3aa350edbe
commit
d10bce758f
@ -100,7 +100,7 @@ pub fn visible_popup(compositor: &mut Compositor) -> Option<&mut Popup<Self>> {
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user