diff -r 6e09a9a73cb7 -r 8b49d3e0b4c8 QScintilla/Editor.py --- a/QScintilla/Editor.py Sun Dec 31 18:54:06 2017 +0100 +++ b/QScintilla/Editor.py Mon Jan 01 19:06:33 2018 +0100 @@ -547,7 +547,8 @@ """ Public method to add a clone to our list. - @param editor reference to the cloned editor (Editor) + @param editor reference to the cloned editor + @type Editor """ self.__clones.append(editor) @@ -560,7 +561,8 @@ """ Public method to remove a clone from our list. - @param editor reference to the cloned editor (Editor) + @param editor reference to the cloned editor + @type Editor """ if editor in self.__clones: editor.editorRenamed.disconnect(self.fileRenamed) @@ -569,6 +571,17 @@ editor.encodingChanged.disconnect(self.__encodingChanged) self.__clones.remove(editor) + def isClone(self, editor): + """ + Public method to test, if the given editor is a clone. + + @param editor reference to the cloned editor + @type Editor + @return flag indicating a clone + @rtype bool + """ + return editor in self.__clones + def __bindName(self, line0): """ Private method to generate a dummy filename for binding a lexer.