Update attributeManager.py

This commit is contained in:
chrys87 2018-05-28 09:52:58 +02:00 committed by GitHub
parent 550c759ae5
commit 304432c33d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,9 +208,7 @@ class attributeManager():
if oldAttr[line][column] != newAttr[line][column]: if oldAttr[line][column] != newAttr[line][column]:
if not self.isDefaultAttribute(newAttr[line][column]): if not self.isDefaultAttribute(newAttr[line][column]):
if not currCursor: if not currCursor:
currCursor = {} currCursor = {'x': column, 'y': line}
currCursor['x'] = column
currCursor['y'] = line
result += textLines[line][column] result += textLines[line][column]
result += ' ' result += ' '
return result, currCursor return result, currCursor