From eb0909033e27ee98ef2569d6cd821fbc28362df1 Mon Sep 17 00:00:00 2001 From: Zack Date: Wed, 22 May 2024 10:10:55 -0700 Subject: [PATCH] reduce description lengths --- src/croc/croc.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/croc/croc.go b/src/croc/croc.go index eaa5cdb4..94804c4b 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -1696,6 +1696,9 @@ func (c *Client) createEmptyFileAndFinish(fileInfo FileInfo, i int) (err error) } else { description = " " + description } + if len(description) > 20 { + description = description[:17] + "..." + } c.bar = progressbar.NewOptions64(1, progressbar.OptionOnCompletion(func() { c.fmtPrintUpdate() @@ -1872,6 +1875,9 @@ func (c *Client) setBar() { } else if !c.Options.IsSender { description = " " + description } + if len(description) > 20 { + description = description[:17] + "..." + } c.bar = progressbar.NewOptions64( c.FilesToTransfer[c.FilesToTransferCurrentNum].Size, progressbar.OptionOnCompletion(func() {