eric6/QScintilla/SpellChecker.py

changeset 7648
d71792be46cc
parent 7360
9190402e4505
child 7781
607a6098cb44
equal deleted inserted replaced
7647:94c5e1bbf09f 7648:d71792be46cc
9 The spell checker is based on pyenchant. 9 The spell checker is based on pyenchant.
10 """ 10 """
11 11
12 12
13 import os 13 import os
14 import sys
15 14
16 from PyQt5.QtCore import QTimer, QObject 15 from PyQt5.QtCore import QTimer, QObject
17 16
18 import Preferences 17 import Preferences
19 import Utilities 18 import Utilities
328 if atEnd: 327 if atEnd:
329 pos = self.editor.positionBefore(pos) 328 pos = self.editor.positionBefore(pos)
330 329
331 if pos >= 0 and self.__checkRegion(pos): 330 if pos >= 0 and self.__checkRegion(pos):
332 pos0 = pos 331 pos0 = pos
333 pos1 = sys.maxsize 332 pos1 = 0xffffffff
334 if not self.editor.charAt(pos).isalnum(): 333 if not self.editor.charAt(pos).isalnum():
335 line, index = self.editor.lineIndexFromPosition(pos) 334 line, index = self.editor.lineIndexFromPosition(pos)
336 self.editor.clearIndicator( 335 self.editor.clearIndicator(
337 self.indicator, line, index, line, index + 1) 336 self.indicator, line, index, line, index + 1)
338 pos1 = self.editor.positionAfter(pos) 337 pos1 = self.editor.positionAfter(pos)

eric ide

mercurial