@@ -14,7 +14,12 @@ impl Component for Info {
14 let Info { width, height, .. } = self;
14 let Info { width, height, .. } = self;
15 let (w, h) = (*width + 2, *height + 2);
15 let (w, h) = (*width + 2, *height + 2);
16 // -2 to subtract command line + statusline. a bit of a hack, because of splits.
16 // -2 to subtract command line + statusline. a bit of a hack, because of splits.
17+ let area = viewport.intersection(Rect::new(
18+ viewport.width.saturating_sub(w),
17− let area = Rect::new(viewport.width - w, viewport.height - h - 2, w, h);
19+ viewport.height.saturating_sub(h + 2),
18 surface.clear_with(area, style);
23 surface.clear_with(area, style);
19 let Rect { x, y, .. } = block.inner(area);
24 let Rect { x, y, .. } = block.inner(area);
20 for (y, line) in (y..).zip(self.text.lines()) {
25 for (y, line) in (y..).zip(self.text.lines()) {