Update word_utils.py

This commit is contained in:
chrys87 2016-07-20 16:03:22 +02:00 committed by GitHub
parent 5033a56eac
commit 7ab45cca50

View File

@ -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