5142 self.removeSelectedText() |
5142 self.removeSelectedText() |
5143 line, col = self.getCursorPosition() |
5143 line, col = self.getCursorPosition() |
5144 elif wLeft: |
5144 elif wLeft: |
5145 txt = txt[len(wLeft):] |
5145 txt = txt[len(wLeft):] |
5146 |
5146 |
5147 if txt[0] in "'\"": # New in jedi 0.16: AC of dict keys |
5147 if txt and txt[0] in "'\"": |
|
5148 # New in jedi 0.16: AC of dict keys |
5148 txt = txt[1:] |
5149 txt = txt[1:] |
5149 self.insert(txt) |
5150 self.insert(txt) |
5150 self.endUndoAction() |
5151 self.endUndoAction() |
5151 self.setCursorPosition(line, col + len(txt)) |
5152 self.setCursorPosition(line, col + len(txt)) |
5152 elif listId == TemplateCompletionListID: |
5153 elif listId == TemplateCompletionListID: |