--- a/eric6/QScintilla/Editor.py Mon Oct 12 19:54:03 2020 +0200 +++ b/eric6/QScintilla/Editor.py Tue Oct 13 18:23:53 2020 +0200 @@ -3536,7 +3536,7 @@ if start <= index <= end: return (start, end) - return (0, len(text)) + return (index, index) def getWord(self, line, index, direction=0, useWordChars=True): """