AssistantEric/Assistant.py

changeset 45
7046451092fb
parent 43
263a7d088c75
child 46
5e928f308f55
equal deleted inserted replaced
44:b63512864c6d 45:7046451092fb
306 if col > 0 and beg[col - 1] in wsep: 306 if col > 0 and beg[col - 1] in wsep:
307 col -= 1 307 col -= 1
308 else: 308 else:
309 while col > 0 and beg[col - 1] not in wsep: 309 while col > 0 and beg[col - 1] not in wsep:
310 col -= 1 310 col -= 1
311 if col >= 0: 311 if col >= 0 and beg[col - 1] != " ":
312 col -= 1 312 col -= 1
313 prefix = editor.getWordLeft(line, col) 313 prefix = editor.getWordLeft(line, col)
314 if editor.isPy2File() or editor.isPy3File(): 314 if editor.isPy2File() or editor.isPy3File():
315 src = editor.text() 315 src = editor.text()
316 fn = editor.getFileName() 316 fn = editor.getFileName()

eric ide

mercurial