mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-16 23:58:19 +02:00
Always disable paging when listing themes
This commit is contained in:
parent
5c43ddb56c
commit
1eb24a4e54
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user