Update curr_char_phonetic.py

This commit is contained in:
chrys87 2016-09-23 12:44:10 +02:00 committed by GitHub
parent a0d82cd9dd
commit 0bea16359a

View File

@ -18,10 +18,7 @@ class command():
return 'phonetically presents the current character' return 'phonetically presents the current character'
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, currChar = \ x, y, currChar = \
char_utils.getCurrentChar(cursorPos['x'], cursorPos['y'], self.env['screenData']['newContentText']) char_utils.getCurrentChar(cursorPos['x'], cursorPos['y'], self.env['screenData']['newContentText'])