From 7ab45cca50c5c8f21d7f2649d99cb453e16dc226 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 20 Jul 2016 16:03:22 +0200 Subject: [PATCH] Update word_utils.py --- src/fenrir-package/utils/word_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir-package/utils/word_utils.py b/src/fenrir-package/utils/word_utils.py index fb7f4aa4..355e0643 100644 --- a/src/fenrir-package/utils/word_utils.py +++ b/src/fenrir-package/utils/word_utils.py @@ -1,6 +1,6 @@ #!/bin/python -def getCurrentWord(x,y, currText): +def getCurrentWord(currX,currY, currText): if currText == '': return -1, -1, '' wordFound = False @@ -26,7 +26,7 @@ def getCurrentWord(x,y, currText): y -= 1 currLine = wrappedLines[y].replace("\t"," ") else: - break + return currX, currY, '' x = len(wrappedLines[y]) - 1 else: x -= 1