@@ -497,7 +497,7 @@ impl EditorView {
497 use tui::{
497 use tui::{
498 layout::Alignment,
498 layout::Alignment,
499 text::Text,
499 text::Text,
500− widgets::{Paragraph, Widget},
500+ widgets::{Paragraph, Widget, Wrap},
503 let cursor = doc
503 let cursor = doc
@@ -529,8 +529,10 @@ impl EditorView {
529 lines.extend(text.lines);
529 lines.extend(text.lines);
532− let paragraph = Paragraph::new(lines).alignment(Alignment::Right);
532+ let paragraph = Paragraph::new(lines)
533+ .alignment(Alignment::Right)
534+ .wrap(Wrap { trim: true });
533− let width = 80.min(viewport.width);
535+ let width = 100.min(viewport.width);
534 let height = 15.min(viewport.height);
536 let height = 15.min(viewport.height);
535 paragraph.render(
537 paragraph.render(
536 Rect::new(viewport.right() - width, viewport.y + 1, width, height),
538 Rect::new(viewport.right() - width, viewport.y + 1, width, height),