add to char review

This commit is contained in:
chrys
2018-05-29 00:06:52 +02:00
parent 21bdcdb56e
commit 3bffb8b80c
11 changed files with 41 additions and 6 deletions

View File

@ -17,6 +17,9 @@ class command():
def getDescription(self):
return _('Reads attributes of current cursor position')
def run(self):
# is it enabled?
if not self.env['runtime']['settingsManager'].getSettingAsBool('general', 'hasAttributes'):
return
# is a vertical change?
if not (self.env['runtime']['cursorManager'].isCursorVerticalMove() or\
self.env['runtime']['cursorManager'].isCursorHorizontalMove()):