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 |