From 6b37976357245af60b4a9b50f1f656f6ceccd5a9 Mon Sep 17 00:00:00 2001 From: tatounee <66035819+tatounee@users.noreply.github.com> Date: Fri, 7 Nov 2025 01:18:57 +0100 Subject: [PATCH] Made flags `-f`, `--fullscreen` not taking argument (#109) Now, its presence alone is enough to activate the full-screen option. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 418dfbe..0dce5e0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,7 +87,7 @@ async fn inner_main() -> Result<(), WrappedErr> { /// 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) - optional -f,--fullscreen fullscreen: bool + optional -f,--fullscreen /// The number of pages to prerender surrounding the currently-shown page; 0 means no /// limit. By default, there is no limit. optional -p,--prerender prerender: usize @@ -300,7 +300,7 @@ async fn inner_main() -> Result<(), WrappedErr> { })?; } - let fullscreen = flags.fullscreen.unwrap_or_default(); + let fullscreen = flags.fullscreen; let main_area = Tui::main_layout(&term.get_frame(), fullscreen); to_renderer .send(RenderNotif::Area(main_area.page_area))