eric6/QScintilla/Editor.py

changeset 7543
a737e240f27b
parent 7536
861e46f99d65
child 7546
bf5f777260a6
equal deleted inserted replaced
7542:162527b48aac 7543:a737e240f27b
5141 self.selectCurrentWord() 5141 self.selectCurrentWord()
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
5147 if txt[0] in "'\"": # New in jedi 0.16: AC of dict keys
5148 txt = txt[1:]
5146 self.insert(txt) 5149 self.insert(txt)
5147 self.endUndoAction() 5150 self.endUndoAction()
5148 self.setCursorPosition(line, col + len(txt)) 5151 self.setCursorPosition(line, col + len(txt))
5149 elif listId == TemplateCompletionListID: 5152 elif listId == TemplateCompletionListID:
5150 self.__applyTemplate(txt, self.getLanguage()) 5153 self.__applyTemplate(txt, self.getLanguage())

eric ide

mercurial