From ebfcd7195e3703228bdfc4735fbb18910291c726 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Wed, 12 Jun 2024 13:40:06 +0800 Subject: [PATCH] Fastfetch: fix `display.bar.border{Left,Right}` doesn't work in JSON config --- src/options/display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options/display.c b/src/options/display.c index 65e9e4c65..b50488c9e 100644 --- a/src/options/display.c +++ b/src/options/display.c @@ -180,11 +180,11 @@ const char* ffOptionsParseDisplayJsonConfig(FFOptionsDisplay* options, yyjson_va if (charTotal) ffStrbufSetS(&options->barCharTotal, charTotal); - yyjson_val* borderLeft = yyjson_obj_get(val, "border-left"); + yyjson_val* borderLeft = yyjson_obj_get(val, "borderLeft"); if (borderLeft) ffStrbufSetS(&options->barBorderLeft, yyjson_get_str(borderLeft)); - yyjson_val* borderRight = yyjson_obj_get(val, "border-right"); + yyjson_val* borderRight = yyjson_obj_get(val, "borderRight"); if (borderRight) ffStrbufSetS(&options->barBorderRight, yyjson_get_str(borderRight));