mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-10 16:17:57 +02:00
Add -S
flag to less when --wrap=never
(closes #1255)
Prevent less from wrapping lines by setting the proper flag when `--wrap=never`. If the user set a custom value for `--pager`, no additional flag is set.
This commit is contained in:
@ -54,7 +54,10 @@ impl<'b> Controller<'b> {
|
||||
paging_mode = PagingMode::Never;
|
||||
}
|
||||
}
|
||||
output_type = OutputType::from_mode(paging_mode, self.config.pager)?;
|
||||
|
||||
let wrapping_mode = self.config.wrapping_mode;
|
||||
|
||||
output_type = OutputType::from_mode(paging_mode, wrapping_mode, self.config.pager)?;
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "paging"))]
|
||||
|
Reference in New Issue
Block a user