SpellChecker: implemented a compatibility fix for upcoming PyQt 5.12. maintenance

Sat, 09 Feb 2019 14:40:32 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Feb 2019 14:40:32 +0100
branch
maintenance
changeset 6750
710d23d485bb
parent 6749
f5ce328edcf5
child 6751
1a8db34bf057

SpellChecker: implemented a compatibility fix for upcoming PyQt 5.12.
(grafted from a3aec8edaef5afdf2de70b47bea060dd7b32643b)

QScintilla/SpellChecker.py file | annotate | diff | comparison | revisions
--- a/QScintilla/SpellChecker.py	Fri Feb 08 19:35:26 2019 +0100
+++ b/QScintilla/SpellChecker.py	Sat Feb 09 14:40:32 2019 +0100
@@ -331,7 +331,7 @@
         
         if pos >= 0 and self.__checkRegion(pos):
             pos0 = pos
-            pos1 = -1
+            pos1 = sys.maxsize
             if not self.editor.charAt(pos).isalnum():
                 line, index = self.editor.lineIndexFromPosition(pos)
                 self.editor.clearIndicator(

eric ide

mercurial