From 1e42b65efaf5d102a45b889aa6755f50d4ba3d74 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 20 Dec 2016 17:38:39 +0100 Subject: [PATCH] Update word_utils.py --- src/fenrir/utils/word_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir/utils/word_utils.py b/src/fenrir/utils/word_utils.py index 4b2d10c0..349b172a 100644 --- a/src/fenrir/utils/word_utils.py +++ b/src/fenrir/utils/word_utils.py @@ -36,7 +36,7 @@ def getCurrentWord(currX,currY, currText): else: y -= 1 currLine = wrappedLines[y] - x = len( wrappedLines[y]) - 1 + x = len( currLine) - 1 lineBreak = True else: x -= 1 @@ -69,7 +69,7 @@ def getPrevWord(currX,currY, currText): else: y -= 1 currLine = wrappedLines[y] - x = len( wrappedLines[y]) - 1 + x = len( currLine) - 1 lineBreak = True else: x -= 1