forked from qt-creator/qt-creator
VCS: Handle code folding in diff view
Allow to do codefolding on files and hunks in the diff editor
This commit is contained in:
@@ -201,6 +201,7 @@ void VCSBaseEditor::init()
|
||||
break;
|
||||
case DiffOutput: {
|
||||
DiffHighlighter *dh = createDiffHighlighter();
|
||||
setCodeFoldingSupported(true);
|
||||
baseTextDocument()->setSyntaxHighlighter(dh);
|
||||
d->m_diffFilePattern = dh->filePattern();
|
||||
connect(this, SIGNAL(textChanged()), this, SLOT(slotPopulateDiffBrowser()));
|
||||
|
||||
Reference in New Issue
Block a user