Update beets/ui/__init__.py

Co-authored-by: Adrian Sampson <adrian@radbox.org>
This commit is contained in:
era 2023-12-03 09:48:14 -05:00 committed by GitHub
parent d9f08ee8ca
commit 3245675f08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -858,7 +858,7 @@ def split_into_lines(string, width_tuple):
m.group("esc") + raw_word + RESET_COLOR
for raw_word in raw_words
]
elif len(raw_words) >= 1:
elif raw_words:
# Pretext stops mid-word
if m.group("esc") != RESET_COLOR:
# Add the rest of the current word, with a reset after it