From 6cd32a5b82cd5ed27e698860f5ca8421a94548d9 Mon Sep 17 00:00:00 2001 From: Jack Allen Date: Wed, 27 Aug 2025 17:19:32 +0100 Subject: [PATCH] chore(no-git): Hide separators where the previous widget returns null --- src/utils/renderer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/renderer.ts b/src/utils/renderer.ts index 0ccf03b..a8bd199 100644 --- a/src/utils/renderer.ts +++ b/src/utils/renderer.ts @@ -655,6 +655,10 @@ export function renderStatusLine( // Handle separators specially (they're not widgets) if (widget.type === 'separator') { + if (i > 0 && !preRenderedWidgets[i - 1]?.content) { + continue; + } + const sepChar = widget.character ?? (settings.defaultSeparator ?? '|'); const formattedSep = formatSeparator(sepChar);