mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-01 23:51:46 -04:00
Fix r_to_l argument as well to just be a flag
This commit is contained in:
+2
-2
@@ -83,7 +83,7 @@ async fn inner_main() -> Result<(), WrappedErr> {
|
||||
let flags = xflags::parse_or_exit! {
|
||||
/// Display the pdf with the pages starting at the right hand size and moving left and
|
||||
/// adjust input keys to match
|
||||
optional -r,--r-to-l r_to_l: bool
|
||||
optional -r,--r-to-l
|
||||
/// The maximum number of pages to display together, horizontally, at a time
|
||||
optional -m,--max-wide max_wide: NonZeroUsize
|
||||
/// Fullscreen the pdf (hide document name, page count, etc)
|
||||
@@ -270,7 +270,7 @@ async fn inner_main() -> Result<(), WrappedErr> {
|
||||
let tui = Tui::new(
|
||||
file_name,
|
||||
flags.max_wide,
|
||||
flags.r_to_l.unwrap_or_default(),
|
||||
flags.r_to_l,
|
||||
is_kitty
|
||||
);
|
||||
|
||||
|
||||
+1
-1
@@ -787,7 +787,7 @@ impl Tui {
|
||||
}
|
||||
}
|
||||
|
||||
// I want this to always return 0 'cause I just use it to return from `Self::handle_event`]
|
||||
// I want this to always return an option 'cause I just use it to return from `Self::handle_event`
|
||||
#[expect(clippy::unnecessary_wraps)]
|
||||
fn update_zoom(&mut self, f: impl FnOnce(&mut Zoom)) -> Option<InputAction> {
|
||||
if let Some(z) = &mut self.zoom {
|
||||
|
||||
Reference in New Issue
Block a user