Update spell_check.py

This commit is contained in:
chrys87 2016-09-06 09:27:52 +02:00 committed by GitHub
parent cfd17f1bd9
commit 3a5c37ff6a

View File

@ -24,9 +24,6 @@ class command():
except:
return environment
if not newContent[environment['screenData']['newCursor']['x']].strip() == '':
return environment
if (environment['screenData']['newCursorReview'] != None):
cursorPos = environment['screenData']['newCursorReview'].copy()
else:
@ -34,7 +31,7 @@ class command():
# get the word
newContent = environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']]
x, y, currWord = word_utils.getCurrentWord(cursorPos['x'], cursorPos['y'], newContent)
x, y, currWord = word_utils.getCurrentWord(cursorPos['x'], 0, newContent)
if currWord != '':
if not spellChecker.check(currWord):