Update add_word_to_spell_check.py

This commit is contained in:
chrys87 2016-09-23 12:51:42 +02:00 committed by GitHub
parent d4cd55d861
commit 8d20208ded

View File

@ -38,10 +38,7 @@ class command():
except:
return
if self.env['screenData']['newCursorReview']:
cursorPos = self.env['screenData']['newCursorReview'].copy()
else:
cursorPos = self.env['screenData']['newCursor'].copy()
cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor()
# get the word
newContent = self.env['screenData']['newContentText'].split('\n')[cursorPos['y']]