Update word_utils.py
This commit is contained in:
parent
5033a56eac
commit
7ab45cca50
@ -1,6 +1,6 @@
|
|||||||
#!/bin/python
|
#!/bin/python
|
||||||
|
|
||||||
def getCurrentWord(x,y, currText):
|
def getCurrentWord(currX,currY, currText):
|
||||||
if currText == '':
|
if currText == '':
|
||||||
return -1, -1, ''
|
return -1, -1, ''
|
||||||
wordFound = False
|
wordFound = False
|
||||||
@ -26,7 +26,7 @@ def getCurrentWord(x,y, currText):
|
|||||||
y -= 1
|
y -= 1
|
||||||
currLine = wrappedLines[y].replace("\t"," ")
|
currLine = wrappedLines[y].replace("\t"," ")
|
||||||
else:
|
else:
|
||||||
break
|
return currX, currY, ''
|
||||||
x = len(wrappedLines[y]) - 1
|
x = len(wrappedLines[y]) - 1
|
||||||
else:
|
else:
|
||||||
x -= 1
|
x -= 1
|
||||||
|
Loading…
Reference in New Issue
Block a user