mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-07 13:41:14 +00:00
WIP edit desired width.
This commit is contained in:
parent
4c60ab12cc
commit
ee3a37f3fc
@ -577,7 +577,7 @@ fn run() -> Result<()> {
|
|||||||
print!("{:width$}{}", lang.name, separator, width = longest);
|
print!("{:width$}{}", lang.name, separator, width = longest);
|
||||||
|
|
||||||
// Line-wrapping for the possible file extension overflow.
|
// Line-wrapping for the possible file extension overflow.
|
||||||
let desired_width = 48;
|
let desired_width = 90 - longest;
|
||||||
// Number of characters on this line so far, wrap before `desired_width`
|
// Number of characters on this line so far, wrap before `desired_width`
|
||||||
let mut num_chars = 0;
|
let mut num_chars = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user