eric6/QScintilla/Editor.py

branch
maintenance
changeset 7607
dd1054be15aa
parent 7560
343db73c4842
parent 7575
3ebd1db41c15
child 7642
72721823d453
equal deleted inserted replaced
7569:707442ffadc3 7607:dd1054be15aa
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