From 5f810de1e064b5edd812672ac8d140d0eaa96210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 23 May 2026 09:33:58 +0800 Subject: [PATCH] Logo: overrides the auto detected max-width with the configured width, if set --- src/logo/logo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/logo/logo.c b/src/logo/logo.c index afd08d817..db8cb47de 100644 --- a/src/logo/logo.c +++ b/src/logo/logo.c @@ -45,7 +45,9 @@ static void logoLineCacheBuild(const char* data, bool doColorReplacement) { logoLineCacheClear(cache); - uint32_t maxLineWidth = 0; + // Overrides the auto detected max-width with the configured width, if set. + // In case we fail to get the actual width of the logo, as we don't use `wcwidth` + uint32_t maxLineWidth = options->width; uint32_t parsedHeight = 0; FF_STRBUF_AUTO_DESTROY carryColor = ffStrbufCreate();