2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-12 13:10:40 +00:00

start raw mode in wide mode

This commit is contained in:
dvkt 2019-12-21 14:58:28 -08:00
parent 1aa52a4a2b
commit 93d76f43aa
2 changed files with 4 additions and 2 deletions

View File

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

View File

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