From 3a5c37ff6a6ecf09eb637dbc85094f235d46bb1b Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 6 Sep 2016 09:27:52 +0200 Subject: [PATCH] Update spell_check.py --- src/fenrir-package/commands/commands/spell_check.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/fenrir-package/commands/commands/spell_check.py b/src/fenrir-package/commands/commands/spell_check.py index a603633e..b6ac878e 100644 --- a/src/fenrir-package/commands/commands/spell_check.py +++ b/src/fenrir-package/commands/commands/spell_check.py @@ -23,9 +23,6 @@ class command(): spellChecker = enchant.Dict(environment['runtime']['settingsManager'].getSetting(environment, 'general', 'spellCheckLanguage')) except: return environment - - if not newContent[environment['screenData']['newCursor']['x']].strip() == '': - return environment if (environment['screenData']['newCursorReview'] != None): cursorPos = environment['screenData']['newCursorReview'].copy() @@ -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):