Wrap buffer content so it's not hidden to the right
This commit is contained in:
@ -122,7 +122,9 @@ impl Component for Home {
|
|||||||
.split(layout[1]);
|
.split(layout[1]);
|
||||||
|
|
||||||
frame.render_widget(
|
frame.render_widget(
|
||||||
Paragraph::new(buffers.active_buffer().content()).block(Block::new().borders(Borders::ALL)),
|
Paragraph::new(buffers.active_buffer().content())
|
||||||
|
.block(Block::new().borders(Borders::ALL))
|
||||||
|
.wrap(Wrap { trim: true }),
|
||||||
layout[0],
|
layout[0],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user