From d8e22d97d3b0408eadff496a372bec6fdf97cee5 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 20 Jul 2016 16:11:05 +0200 Subject: [PATCH] Update word_utils.py --- src/fenrir-package/utils/word_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fenrir-package/utils/word_utils.py b/src/fenrir-package/utils/word_utils.py index 355e0643..50919212 100644 --- a/src/fenrir-package/utils/word_utils.py +++ b/src/fenrir-package/utils/word_utils.py @@ -3,6 +3,9 @@ def getCurrentWord(currX,currY, currText): if currText == '': return -1, -1, '' + x = currX + y = currY + wrappedLines = currText.split('\n') wordFound = False currWord = '' currLine = wrappedLines[y].replace("\t"," ") @@ -30,4 +33,4 @@ def getCurrentWord(currX,currY, currText): x = len(wrappedLines[y]) - 1 else: x -= 1 - return x, y, currWord + return x, y, currWord