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:
@@ -114,7 +114,7 @@ QString GitEditor::changeUnderCursor(const QTextCursor &c) const
|
||||
|
||||
VCSBase::DiffHighlighter *GitEditor::createDiffHighlighter() const
|
||||
{
|
||||
const QRegExp filePattern(QLatin1String("^[-+][-+][-+] [ab].*"));
|
||||
const QRegExp filePattern(QLatin1String("^(diff --git a/|index |[+-][+-][+-] [ab]).*$"));
|
||||
return new VCSBase::DiffHighlighter(filePattern);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user