--- a/eric6/QScintilla/SpellChecker.py Wed Sep 25 18:25:43 2019 +0200 +++ b/eric6/QScintilla/SpellChecker.py Wed Sep 25 18:37:35 2019 +0200 @@ -402,8 +402,9 @@ """ Public method to check the current selection. """ - selStartLine, selStartIndex, selEndLine, selEndIndex = \ + selStartLine, selStartIndex, selEndLine, selEndIndex = ( self.editor.getSelection() + ) self.__checkDocumentPart( self.editor.positionFromLineIndex(selStartLine, selStartIndex), self.editor.positionFromLineIndex(selEndLine, selEndIndex) @@ -523,11 +524,13 @@ spell = self._spelling_dict if spell: while self.pos < self.endPos and self.pos >= 0: - word, wordStart, wordEnd = \ - self.__getNextWord(self.pos, self.endPos) + word, wordStart, wordEnd = self.__getNextWord( + self.pos, self.endPos) self.pos = wordEnd - if (wordEnd - wordStart) >= self.minimumWordSize and \ - self.__checkRegion(wordStart): + if ( + (wordEnd - wordStart) >= self.minimumWordSize and + self.__checkRegion(wordStart) + ): try: if spell.check(word): continue