Update curr_word_phonetic.py

This commit is contained in:
chrys87 2016-09-23 12:52:55 +02:00 committed by GitHub
parent 70284d1656
commit 0bb8c7a619

View File

@ -19,10 +19,7 @@ class command():
return 'phonetically spells the current word' return 'phonetically spells the current word'
def run(self): def run(self):
if self.env['screenData']['newCursorReview']: cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor()
cursorPos = self.env['screenData']['newCursorReview'].copy()
else:
cursorPos = self.env['screenData']['newCursor'].copy()
x, y, currWord = \ x, y, currWord = \
word_utils.getCurrentWord(cursorPos['x'], cursorPos['y'], self.env['screenData']['newContentText']) word_utils.getCurrentWord(cursorPos['x'], cursorPos['y'], self.env['screenData']['newContentText'])