Always disable paging when listing themes

This commit is contained in:
Sky 2025-03-24 01:33:22 -04:00 committed by GitHub
parent 5c43ddb56c
commit 1eb24a4e54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,6 +204,10 @@ pub fn list_themes(
style.insert(StyleComponent::Plain);
config.language = Some("Rust");
config.style_components = StyleComponents(style);
#[cfg(feature = "paging")]
{
config.paging_mode = bat::PagingMode::Never; // don't page our very short preview file
}
let stdout = io::stdout();
let mut stdout = stdout.lock();