--- a/eric6/QScintilla/Editor.py Sat May 02 14:04:18 2020 +0200 +++ b/eric6/QScintilla/Editor.py Sun May 31 17:26:14 2020 +0200 @@ -5144,7 +5144,8 @@ elif wLeft: txt = txt[len(wLeft):] - if txt[0] in "'\"": # New in jedi 0.16: AC of dict keys + if txt and txt[0] in "'\"": + # New in jedi 0.16: AC of dict keys txt = txt[1:] self.insert(txt) self.endUndoAction()