eric6/QScintilla/Editor.py

branch
maintenance
changeset 7607
dd1054be15aa
parent 7560
343db73c4842
parent 7575
3ebd1db41c15
child 7642
72721823d453
--- 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()

eric ide

mercurial