Update review_curr_char.py

This commit is contained in:
chrys87 2016-09-23 13:25:59 +02:00 committed by GitHub
parent 429ac9fdb3
commit a0e9e58f1e

View File

@ -18,9 +18,7 @@ class command():
return 'presents the current character.' return 'presents the current character.'
def run(self): def run(self):
self.env['screenData']['oldCursorReview'] = self.env['screenData']['newCursorReview'] self.env['runtime']['cursorManager'].enterReviewModeCurrTextCursor()
if not self.env['screenData']['newCursorReview']:
self.env['screenData']['newCursorReview'] = self.env['screenData']['newCursor'].copy()
self.env['screenData']['newCursorReview']['x'], self.env['screenData']['newCursorReview']['y'], currChar = \ self.env['screenData']['newCursorReview']['x'], self.env['screenData']['newCursorReview']['y'], currChar = \
char_utils.getCurrentChar(self.env['screenData']['newCursorReview']['x'], self.env['screenData']['newCursorReview']['y'], self.env['screenData']['newContentText']) char_utils.getCurrentChar(self.env['screenData']['newCursorReview']['x'], self.env['screenData']['newCursorReview']['y'], self.env['screenData']['newContentText'])