Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion pulsemixer
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,17 @@ class Screen():
for i in line.split('\n'):
parts = i.rsplit('|')
head = ''.join(parts[:-1])
tail = int(parts[-1] or 0)

# Fix: Check if there's a pipe separator and if the last part is a valid number
if len(parts) > 1 and parts[-1].strip().lstrip('-').isdigit():
tail = int(parts[-1])
elif len(parts) > 1 and parts[-1].strip() == '':
tail = 0
else:
# No pipe separator or invalid number, treat entire string as head with no formatting
head = i
tail = 0

try:
win.addstr(index, shift, head, tail | mod)
except:
Expand Down