MiniEditor: fixed an issue introduced by the recent change.

Sun, 10 Feb 2019 17:24:10 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 10 Feb 2019 17:24:10 +0100
changeset 6723
dd868b0bfdba
parent 6722
c58295e218b7
child 6725
cde74a0d1f23

MiniEditor: fixed an issue introduced by the recent change.
(grafted from 48c3ca1ac26425fe904c177c0b47436165e6254d)

QScintilla/MiniEditor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/MiniEditor.py	Sun Feb 10 16:53:42 2019 +0100
+++ b/QScintilla/MiniEditor.py	Sun Feb 10 17:24:10 2019 +0100
@@ -3077,7 +3077,7 @@
             (string)
         @return dummy file name to be used for binding a lexer (string)
         """
-        bindName = self.__curFile
+        bindName = ""
         line0 = line0.lower()
         
         # check first line if it does not start with #!
@@ -3146,7 +3146,7 @@
                     self.filetype = "D"
         
         if not bindName:
-            bindName = self.fileName
+            bindName = self.__curFile
         
         return bindName
     

eric ide

mercurial