mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 18:21:04 +00:00
48541b8507
Leads to a performance improvement for `bat -A`: | Command | Mean [ms] | Min [ms] | Max [ms] | Relative | |:---|---:|---:|---:|---:| | `./bat-master --no-config -A ./bat-master` | 259.8 ± 1.1 | 258.4 | 261.7 | 1.15 ± 0.01 | | `./bat-2301 --no-config -A ./bat-master` | 225.6 ± 1.8 | 224.0 | 229.5 | 1.00 |
13 lines
205 B
Rust
13 lines
205 B
Rust
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
pub enum PagingMode {
|
|
Always,
|
|
QuitIfOneScreen,
|
|
Never,
|
|
}
|
|
|
|
impl Default for PagingMode {
|
|
fn default() -> Self {
|
|
PagingMode::Never
|
|
}
|
|
}
|