Update spell_check.py
This commit is contained in:
parent
cfd17f1bd9
commit
3a5c37ff6a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user