AssistantEric/Assistant.py

changeset 51
b70595b49b3e
parent 50
005b6127b978
child 54
89d28458ff40
equal deleted inserted replaced
50:005b6127b978 51:b70595b49b3e
303 if col > 0 and beg[col - 1] in wsep: 303 if col > 0 and beg[col - 1] in wsep:
304 col -= 1 304 col -= 1
305 else: 305 else:
306 while col > 0 and beg[col - 1] not in wsep: 306 while col > 0 and beg[col - 1] not in wsep:
307 col -= 1 307 col -= 1
308 if col >= 0 and beg[col - 1] != " ": 308 if col > 0 and beg[col - 1] != " ":
309 col -= 1 309 col -= 1
310 prefix = editor.getWordLeft(line, col) 310 prefix = editor.getWordLeft(line, col)
311 if editor.isPy2File() or editor.isPy3File(): 311 if editor.isPy2File() or editor.isPy3File():
312 src = editor.text() 312 src = editor.text()
313 fn = editor.getFileName() 313 fn = editor.getFileName()

eric ide

mercurial