AssistantEric/Assistant.py

changeset 43
263a7d088c75
parent 42
2489ae0286ef
child 45
7046451092fb
equal deleted inserted replaced
42:2489ae0286ef 43:263a7d088c75
300 else: 300 else:
301 beg = editor.text(line)[:col] 301 beg = editor.text(line)[:col]
302 col = len(beg) 302 col = len(beg)
303 wsep = editor.getLexer().autoCompletionWordSeparators() 303 wsep = editor.getLexer().autoCompletionWordSeparators()
304 if wsep: 304 if wsep:
305 wsep.append(" ")
305 if col > 0 and beg[col - 1] in wsep: 306 if col > 0 and beg[col - 1] in wsep:
306 col -= 1 307 col -= 1
307 else: 308 else:
308 while col > 0 and beg[col - 1] not in wsep: 309 while col > 0 and beg[col - 1] not in wsep:
309 col -= 1 310 col -= 1

eric ide

mercurial