2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-16 21:25:56 +00:00

WIP edit desired width.

This commit is contained in:
Connor Kuehl 2018-05-08 07:25:39 -07:00 committed by David Peter
parent 4c60ab12cc
commit ee3a37f3fc

View File

@ -577,7 +577,7 @@ fn run() -> Result<()> {
print!("{:width$}{}", lang.name, separator, width = longest);
// 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`
let mut num_chars = 0;