eric6/QScintilla/Editor.py

changeset 7575
3ebd1db41c15
parent 7546
bf5f777260a6
child 7607
dd1054be15aa
child 7628
f904d0eef264
equal deleted inserted replaced
7574:3fbc430c4091 7575:3ebd1db41c15
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:

eric ide

mercurial