Merge pull request #36 from escitalopram/f-line-and-word-matching
Fix bug in change grouping algorithm
This commit is contained in:
commit
d2e9f49a0f
2 changed files with 2 additions and 2 deletions
|
|
@ -123,7 +123,7 @@
|
|||
var escapedLine = utils.escape(line.content);
|
||||
|
||||
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();
|
||||
}
|
||||
if (line.type == diffParser.LINE_TYPE.CONTEXT) {
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@
|
|||
var escapedLine = utils.escape(line.content.substr(1));
|
||||
|
||||
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();
|
||||
}
|
||||
if (line.type == diffParser.LINE_TYPE.CONTEXT) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue