mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
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 <heipei@hackvalue.de>
This commit is contained in:
committed by
Pieter de Bie
parent
a8f4304f86
commit
d3cb020598
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user