start raw mode in wide mode

pull/6/head
dvkt 5 years ago
parent 1aa52a4a2b
commit 93d76f43aa

@ -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 {

@ -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')) => {

Loading…
Cancel
Save