mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 20:09:23 +00:00
Compute old offset difference only once
This commit is contained in:
parent
1151d764f7
commit
1b41165437
|
@ -224,13 +224,9 @@ function prepare_patchset(filediv)
|
|||
last = [tp, offset + doffset, offset, length];
|
||||
patches.push(last);
|
||||
}
|
||||
}
|
||||
|
||||
doffset += added ? -length : length;
|
||||
}
|
||||
else
|
||||
{
|
||||
doffset += added ? -length : length;
|
||||
}
|
||||
doffset += added ? -length : length;
|
||||
}
|
||||
|
||||
var filename = filediv.getAttribute('data-filename');
|
||||
|
|
Loading…
Reference in a new issue