QScintilla/SpellChecker.py

branch
maintenance
changeset 5440
d22ed5a4374f
parent 5389
9b1c800daff3
child 5815
223fa32b3a32
equal deleted inserted replaced
5438:5971091376ef 5440:d22ed5a4374f
117 dictionary (string) 117 dictionary (string)
118 """ 118 """
119 if isException: 119 if isException:
120 dicFile = Preferences.getEditor("SpellCheckingPersonalExcludeList") 120 dicFile = Preferences.getEditor("SpellCheckingPersonalExcludeList")
121 if not dicFile: 121 if not dicFile:
122 dicFile = SpellChecker.getDefaultPath(False) 122 dicFile = SpellChecker.getDefaultPath(True)
123 else: 123 else:
124 dicFile = Preferences.getEditor("SpellCheckingPersonalWordList") 124 dicFile = Preferences.getEditor("SpellCheckingPersonalWordList")
125 if not dicFile: 125 if not dicFile:
126 dicFile = SpellChecker.getDefaultPath() 126 dicFile = SpellChecker.getDefaultPath()
127 return dicFile 127 return dicFile
193 """ 193 """
194 Public method to set the minimum word size. 194 Public method to set the minimum word size.
195 195
196 @param size minimum word size (integer) 196 @param size minimum word size (integer)
197 """ 197 """
198 self.minimumWordSize = size 198 if size > 0:
199 self.minimumWordSize = size
199 200
200 def __getNextWord(self, pos, endPosition): 201 def __getNextWord(self, pos, endPosition):
201 """ 202 """
202 Private method to get the next word in the text after the given 203 Private method to get the next word in the text after the given
203 position. 204 position.

eric ide

mercurial