diff options
author | Byron Jones <bjones@mozilla.com> | 2013-05-08 19:38:14 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-05-08 19:38:14 +0200 |
commit | a2f1887b92d002834dcbfd5685a51a1f53fd9824 (patch) | |
tree | 728ea64abdf00527f07dbc9e5d31d70836f0b1e3 /extensions/Splinter/web/splinter.js | |
parent | a970b2abf57c910ab53ba272e944bc0c948b0fae (diff) | |
download | bugzilla-a2f1887b92d002834dcbfd5685a51a1f53fd9824.tar.gz bugzilla-a2f1887b92d002834dcbfd5685a51a1f53fd9824.tar.xz |
Bug 685645: make it clearer in splinter that a hunk's section/function header is not a removal
Diffstat (limited to 'extensions/Splinter/web/splinter.js')
-rw-r--r-- | extensions/Splinter/web/splinter.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/extensions/Splinter/web/splinter.js b/extensions/Splinter/web/splinter.js index 8902a3d74..368bd74dc 100644 --- a/extensions/Splinter/web/splinter.js +++ b/extensions/Splinter/web/splinter.js @@ -2020,7 +2020,13 @@ Splinter.addPatchFile = function (file) { var hunkHeader = Splinter.EL("tr", "hunk-header"); tbody.appendChild(hunkHeader); hunkHeader.appendChild(Splinter.EL("td")); // line number column - var hunkCell = Splinter.EL("td", "hunk-cell", hunk.functionLine ? hunk.functionLine : "\u00a0"); + var hunkCell = Splinter.EL( + "td", + "hunk-cell", + "Lines " + hunk.oldStart + '-' + + Math.max(hunk.oldStart + hunk.oldCount - 1, hunk.newStart + hunk.newCount - 1) + + "\u00a0\u00a0" + hunk.functionLine + ); hunkCell.colSpan = file.status == Splinter.Patch.CHANGED ? 4 : 1; hunkHeader.appendChild(hunkCell); } |