mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-25 20:18:21 +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);
|
style.insert(StyleComponent::Plain);
|
||||||
config.language = Some("Rust");
|
config.language = Some("Rust");
|
||||||
config.style_components = StyleComponents(style);
|
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 stdout = io::stdout();
|
||||||
let mut stdout = stdout.lock();
|
let mut stdout = stdout.lock();
|
||||||
|
Loading…
Reference in New Issue
Block a user