chore(no-git): Hide separators where the previous widget returns null

This commit is contained in:
Jack Allen committed 2025-08-27 17:19:32 +01:00
1 parent 698bdb7f1a
commit 6cd32a5b82
1 file changed
+4
+4
View File
@@ -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);