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]>
---
 html/views/commit/commit.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/html/views/commit/commit.js b/html/views/commit/commit.js
index be47c14..df0cb42 100644
--- a/html/views/commit/commit.js
+++ b/html/views/commit/commit.js
@@ -240,7 +240,7 @@ var addHunk = function(hunk, reverse)
 
 var discardHunk = function(hunk, event)
 {
-       var hunkText = getHunkText(hunk);
+       var hunkText = getFullHunk(hunk);
 
        if (Controller.discardHunk_altKey_) {
                Controller.discardHunk_altKey_(hunkText, event.altKey == true);
-- 
1.6.4.2.236.gf324c

Reply via email to