Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hut committed Oct 3, 2012
1 parent ffd0a1a commit 9cac7eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ranger/gui/ansi.py
Expand Up @@ -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

Expand Down

0 comments on commit 9cac7eb

Please sign in to comment.