mirror of
https://github.com/beetbox/beets.git
synced 2025-12-12 03:24:44 +01:00
Make sure raw_words is nonempty before accessing its first element
This commit is contained in:
parent
dc0d40500d
commit
d9f08ee8ca
1 changed files with 1 additions and 1 deletions
|
|
@ -858,7 +858,7 @@ def split_into_lines(string, width_tuple):
|
|||
m.group("esc") + raw_word + RESET_COLOR
|
||||
for raw_word in raw_words
|
||||
]
|
||||
else:
|
||||
elif len(raw_words) >= 1:
|
||||
# Pretext stops mid-word
|
||||
if m.group("esc") != RESET_COLOR:
|
||||
# Add the rest of the current word, with a reset after it
|
||||
|
|
|
|||
Loading…
Reference in a new issue