diff --git a/src/text.rs b/src/text.rs index 1a0d7c1..501b052 100644 --- a/src/text.rs +++ b/src/text.rs @@ -7,7 +7,7 @@ pub struct Text { lines: usize, // # of lines longest: usize, // longest line size: (usize, usize), // cols, rows - wide: bool, // in wide mode? turns off margins + pub wide: bool, // in wide mode? turns off margins } impl View for Text { diff --git a/src/ui.rs b/src/ui.rs index e884c95..3bf5500 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -363,7 +363,9 @@ impl UI { if let Some(page) = self.views.get(self.focused) { let url = page.url(); let raw = page.raw(); - self.add_page(Box::new(Text::from(url, raw))); + let mut text = Text::from(url, raw); + text.wide = true; + self.add_page(Box::new(text)); } } Action::Keypress(Key::Ctrl('g')) => {