Skip to content

Commit

Permalink
Fix handling cursor move up with unique and empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gberaudo committed Jun 5, 2016
1 parent e47d3d2 commit 1e6a3b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ansi2html/converter.py
Expand Up @@ -377,11 +377,11 @@ def _collapse_cursor(self, parts):

# Go back, deleting every token in the last 'line'
if part == CursorMoveUp:
final_parts.pop()

if final_parts:
while '\n' not in final_parts[-1]:
final_parts.pop()
final_parts.pop()

while final_parts and '\n' not in final_parts[-1]:
final_parts.pop()

continue

Expand Down

0 comments on commit 1e6a3b8

Please sign in to comment.