Update review_prev_word.py

This commit is contained in:
chrys87 2016-09-23 13:00:32 +02:00 committed by GitHub
parent 7b6e48589f
commit d970a9994f

View File

@ -18,9 +18,7 @@ class command():
return 'moves review focus to the previous word and presents it' return 'moves review focus to the previous word and presents it'
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.getPrevWord(self.env['screenData']['newCursorReview']['x'], self.env['screenData']['newCursorReview']['y'], self.env['screenData']['newContentText']) word_utils.getPrevWord(self.env['screenData']['newCursorReview']['x'], self.env['screenData']['newCursorReview']['y'], self.env['screenData']['newContentText'])