mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-14 01:02:25 +01:00
fix bug where long lines were truncated in plain mode without wrap=never not being set
This commit is contained in:
committed by
David Peter
parent
7ffb04a17a
commit
83c9cb7907
@@ -1,11 +1,11 @@
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum WrappingMode {
|
||||
Character,
|
||||
NoWrapping,
|
||||
NoWrapping(bool), // explicitly opted in or not
|
||||
}
|
||||
|
||||
impl Default for WrappingMode {
|
||||
fn default() -> Self {
|
||||
WrappingMode::NoWrapping
|
||||
WrappingMode::NoWrapping(false)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user