Update attributeManager.py
This commit is contained in:
parent
304432c33d
commit
026b4f55e7
@ -9,7 +9,9 @@ from collections import Counter
|
|||||||
|
|
||||||
class attributeManager():
|
class attributeManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.setDefaultAttributes()
|
self.currAttributes = None
|
||||||
|
self.prevAttributes = None
|
||||||
|
self.setDefaultAttributes()
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
@ -165,9 +167,12 @@ class attributeManager():
|
|||||||
# no change
|
# no change
|
||||||
if oldAttr == newAttr:
|
if oldAttr == newAttr:
|
||||||
return result, currCursor
|
return result, currCursor
|
||||||
|
# error case
|
||||||
|
if newAttr == None:
|
||||||
|
return result, currCursor
|
||||||
# special case for pty if not text exists.
|
# special case for pty if not text exists.
|
||||||
if len(newAttr) == 0:
|
if len(newAttr) == 0:
|
||||||
return result, currCursor
|
return result, currCursor
|
||||||
|
|
||||||
textLines = text.split('\n')
|
textLines = text.split('\n')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user