diff options
-rw-r--r-- | ranger/gui/ansi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/gui/ansi.py b/ranger/gui/ansi.py index 96b95669..f328d9df 100644 --- a/ranger/gui/ansi.py +++ b/ranger/gui/ansi.py @@ -21,6 +21,9 @@ def text_with_fg_bg_attr(ansi_text): if chunk[-1] != 'm': continue match = re.match(r'^.\[(.*).$', chunk) + if not match: + # XXX I have no test case to determine what should happen here + continue attr_args = match.group(1) fg, bg, attr = -1, -1, 0 |