Update screen_utils.py

This commit is contained in:
chrys87 2017-07-28 11:48:50 +02:00 committed by GitHub
parent 8331173e70
commit e4ca5b384e

View File

@ -33,7 +33,6 @@ def trackHighlights(oldAttr, newAttr, text, lenght):
new = splitEvery(newAttr,lenght) new = splitEvery(newAttr,lenght)
textLines = text.split('\n') textLines = text.split('\n')
background = [] background = []
print(len(textLines),len(new),new)
if len(textLines) != len(new): if len(textLines) != len(new):
return result, currCursor return result, currCursor
try: try:
@ -45,7 +44,6 @@ def trackHighlights(oldAttr, newAttr, text, lenght):
background.append(bgStat[1][0]) background.append(bgStat[1][0])
except Exception as e: except Exception as e:
background.append((1,1,1,1)) background.append((1,1,1,1))
print(background)
for line in range(len(new)): for line in range(len(new)):
if old[line] != new[line]: if old[line] != new[line]:
for column in range(len(new[line])): for column in range(len(new[line])):