eric6/QScintilla/Editor.py

changeset 7783
36f66ce496bd
parent 7775
4a1db75550bd
child 7785
9978016560ec
equal deleted inserted replaced
7782:976d3b19ba7f 7783:36f66ce496bd
3534 for match in rx.finditer(text): 3534 for match in rx.finditer(text):
3535 start, end = match.span() 3535 start, end = match.span()
3536 if start <= index <= end: 3536 if start <= index <= end:
3537 return (start, end) 3537 return (start, end)
3538 3538
3539 return (0, len(text)) 3539 return (index, index)
3540 3540
3541 def getWord(self, line, index, direction=0, useWordChars=True): 3541 def getWord(self, line, index, direction=0, useWordChars=True):
3542 """ 3542 """
3543 Public method to get the word at a position. 3543 Public method to get the word at a position.
3544 3544

eric ide

mercurial