@@ -74,20 +74,28 @@ class Application(QtGui.QApplication):
7474 self ._raw_text_documents .append (raw_text_document )
7575 lexer = get_lexer_for_filename (file_name , stripnl = False )
7676 self ._lexers .append (lexer )
77-
77+
78+ self ._highlighted_documents = []
7879 if not args .show :
7980 file_diff = TwoWayFileDiffFactory ().process (* self ._raw_text_documents )
8081 self ._document_models = TextDocumentDiffModelFactory ().process (file_diff )
8182 self ._highlighted_texts = []
8283 for raw_text_document , lexer in zip (self ._raw_text_documents , self ._lexers ):
8384 highlighted_text = HighlightedText (raw_text_document , lexer )
8485 self ._highlighted_texts .append (highlighted_text )
85- self ._highlighted_documents = []
8686 for document_model , highlighted_text in zip (self ._document_models , self ._highlighted_texts ):
8787 highlighted_document = highlight_document (document_model , highlighted_text )
8888 self ._highlighted_documents .append (highlighted_document )
8989 else :
90- self ._highlighted_documents = []
90+ # Fixme: broken
91+ # self._diff_view.set_document_models(self._highlighted_documents, complete_mode)
92+ # File "/home/gv/fabrice/unison-osiris/git-python/DiffViewer/DiffWidget.py", line 333, in set_document_models
93+ # cursor.begin_block(side, text_block.frame_type)
94+ # File "/home/gv/fabrice/unison-osiris/git-python/DiffViewer/DiffWidget.py", line 99, in begin_block
95+ # if ((side == LEFT and frame_type == chunk_type.insert) or
96+ # File "/home/gv/fabrice/unison-osiris/git-python/DiffViewer/Tools/EnumFactory.py", line 107, in __eq__
97+ # return self._value == int(other)
98+ # TypeError: int() argument must be a string or a number, not 'NoneType'
9199 for raw_text_document , lexer in zip (self ._raw_text_documents , self ._lexers ):
92100 highlighted_document = highlight_text (raw_text_document , lexer )
93101 self ._highlighted_documents .append (highlighted_document )
0 commit comments