Skip to content

Commit d3cb020

Browse files
heipeipieter
authored andcommitted
commit.js: Fix discardHunk functionality
When rewriting big parts of commit.js, JD forgot to use the new function for the "Discard hunk" functionality as well. This fixes that. Signed-off-by: Johannes Gilger <[email protected]>
1 parent a8f4304 commit d3cb020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/views/commit/commit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ var addHunk = function(hunk, reverse)
240240

241241
var discardHunk = function(hunk, event)
242242
{
243-
var hunkText = getHunkText(hunk);
243+
var hunkText = getFullHunk(hunk);
244244

245245
if (Controller.discardHunk_altKey_) {
246246
Controller.discardHunk_altKey_(hunkText, event.altKey == true);

0 commit comments

Comments
 (0)