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:
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…
Reference in New Issue
Block a user