From fb868b38a038ea2a44c722cb3b9104c1fab9c864 Mon Sep 17 00:00:00 2001 From: Roshan Padaki Date: Fri, 19 Feb 2021 01:46:04 -0500 Subject: [PATCH] Fix typod flag name to re-enable prompt shrinking when `-max-width` is specified --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1a1a8c24..727d9b29 100644 --- a/main.go +++ b/main.go @@ -165,7 +165,7 @@ func main() { cfg.ModulesRight = strings.Split(*args.ModulesRight, ",") case "priority": cfg.Priority = strings.Split(*args.Priority, ",") - case "max-width-percentage": + case "max-width": cfg.MaxWidthPercentage = *args.MaxWidthPercentage case "truncate-segment-width": cfg.TruncateSegmentWidth = *args.TruncateSegmentWidth