mirror of
https://github.com/tiennm99/ccstatusline.git
synced 2026-10-14 02:15:32 +00:00
chore(no-git): Hide separators where the previous widget returns null
This commit is contained in:
1 parent
698bdb7f1a
commit
6cd32a5b82
1 file changed
+4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user