--- 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