make attrib review work
This commit is contained in:
parent
366328dad7
commit
2fdded00aa
@ -19,6 +19,10 @@ class attributeManager():
|
|||||||
self.env = environment
|
self.env = environment
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
pass
|
pass
|
||||||
|
def getCurrAttributeCursor(self):
|
||||||
|
return self.currAttributeCursor
|
||||||
|
def isAttributeCursorActive(self):
|
||||||
|
return self.currAttributeCursor != None
|
||||||
def isAttributeChange(self):
|
def isAttributeChange(self):
|
||||||
if not self.prevAttributes:
|
if not self.prevAttributes:
|
||||||
return False
|
return False
|
||||||
|
@ -64,10 +64,8 @@ class cursorManager():
|
|||||||
if not self.env['screen']['newCursorReview']:
|
if not self.env['screen']['newCursorReview']:
|
||||||
self.env['screen']['newCursorReview'] = self.env['screen']['newCursor'].copy()
|
self.env['screen']['newCursorReview'] = self.env['screen']['newCursor'].copy()
|
||||||
if self.env['runtime']['settingsManager'].getSettingAsBool('focus', 'highlight') and \
|
if self.env['runtime']['settingsManager'].getSettingAsBool('focus', 'highlight') and \
|
||||||
self.env['screen']['newCursorAttrib'] != None:
|
self.env['runtime']['attributeManager'].isAttributeCursorActive():
|
||||||
if self.env['screen']['newCursorAttrib']['x'] != 0 and \
|
self.env['screen']['newCursorReview'] = self.env['screen']['newCursorAttrib'].copy()
|
||||||
self.env['screen']['newCursorAttrib']['y'] != 0:
|
|
||||||
self.env['screen']['newCursorReview'] = self.env['screen']['newCursorAttrib'].copy()
|
|
||||||
|
|
||||||
def setReviewCursorPosition(self, x, y):
|
def setReviewCursorPosition(self, x, y):
|
||||||
if not self.isReviewMode():
|
if not self.isReviewMode():
|
||||||
|
Loading…
Reference in New Issue
Block a user