Fixed an issue with the editor not activating the correct typing completer in some situations.

Wed, 05 Jan 2011 16:13:10 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 05 Jan 2011 16:13:10 +0100
changeset 811
2ed99614dbf4
parent 808
8f85926125ef
child 812
240adf04a50e

Fixed an issue with the editor not activating the correct typing completer in some situations.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Wed Jan 05 15:46:19 2011 +0100
+++ b/QScintilla/Editor.py	Wed Jan 05 16:13:10 2011 +0100
@@ -1448,6 +1448,13 @@
         
         filename = os.path.basename(filename)
         apiLanguage = Preferences.getEditorLexerAssoc(filename)
+        if apiLanguage == "":
+            if self.isPy2File():
+                apiLanguage = "Python2"
+            elif self.isPy3File():
+                apiLanguage = "Python3"
+            elif self.isRubyFile():
+                apiLanguage = "Ruby"
         
         self.completer = TypingCompleters.getCompleter(apiLanguage, self)
         

eric ide

mercurial