1
0
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:
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); 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;