eric6/QScintilla/Editor.py

changeset 7575
3ebd1db41c15
parent 7546
bf5f777260a6
child 7607
dd1054be15aa
child 7628
f904d0eef264
--- a/eric6/QScintilla/Editor.py	Mon May 04 17:20:19 2020 +0200
+++ b/eric6/QScintilla/Editor.py	Tue May 05 18:06:35 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()

eric ide

mercurial