Update review_curr_word.py

This commit is contained in:
chrys87 2016-09-23 13:32:50 +02:00 committed by GitHub
parent a0e9e58f1e
commit d97ac3bded

View File

@ -18,9 +18,7 @@ class command():
return 'current word.' return 'current word.'
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'], currWord = \ self.env['screenData']['newCursorReview']['x'], self.env['screenData']['newCursorReview']['y'], currWord = \
word_utils.getCurrentWord(self.env['screenData']['newCursorReview']['x'], self.env['screenData']['newCursorReview']['y'], self.env['screenData']['newContentText']) word_utils.getCurrentWord(self.env['screenData']['newCursorReview']['x'], self.env['screenData']['newCursorReview']['y'], self.env['screenData']['newContentText'])