Fix change grouping algorithm
This commit is contained in:
parent
94516c835b
commit
e41ee3eae8
2 changed files with 2 additions and 2 deletions
|
|
@ -123,7 +123,7 @@
|
||||||
var escapedLine = utils.escape(line.content);
|
var escapedLine = utils.escape(line.content);
|
||||||
|
|
||||||
if ( line.type !== diffParser.LINE_TYPE.INSERTS &&
|
if ( line.type !== diffParser.LINE_TYPE.INSERTS &&
|
||||||
(newLines.length > 0 || (line.type !== diffParser.LINE_TYPE.DELETES && oldLines > 0))) {
|
(newLines.length > 0 || (line.type !== diffParser.LINE_TYPE.DELETES && oldLines.length > 0))) {
|
||||||
processChangeBlock();
|
processChangeBlock();
|
||||||
}
|
}
|
||||||
if (line.type == diffParser.LINE_TYPE.CONTEXT) {
|
if (line.type == diffParser.LINE_TYPE.CONTEXT) {
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@
|
||||||
var escapedLine = utils.escape(line.content.substr(1));
|
var escapedLine = utils.escape(line.content.substr(1));
|
||||||
|
|
||||||
if ( line.type !== diffParser.LINE_TYPE.INSERTS &&
|
if ( line.type !== diffParser.LINE_TYPE.INSERTS &&
|
||||||
(newLines.length > 0 || (line.type !== diffParser.LINE_TYPE.DELETES && oldLines > 0))) {
|
(newLines.length > 0 || (line.type !== diffParser.LINE_TYPE.DELETES && oldLines.length > 0))) {
|
||||||
processChangeBlock();
|
processChangeBlock();
|
||||||
}
|
}
|
||||||
if (line.type == diffParser.LINE_TYPE.CONTEXT) {
|
if (line.type == diffParser.LINE_TYPE.CONTEXT) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue