From 722d75f6ef33370bb93cf885dd86cd37fb8630e8 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Tue, 2 May 2017 17:08:41 +0100 Subject: [PATCH] Correctly check if deletions are within selection. --- .../ide/review-panel/controllers/ReviewPanelController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee b/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee index 023921e44f..d3d4684a4c 100644 --- a/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee +++ b/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee @@ -309,7 +309,7 @@ define [ entry.focused = (entry.offset <= selection_offset_start <= entry.offset + entry.content.length) $scope.reviewPanel.nSelectedEntries++ if isEntryWithinSelection else if entry.type == "delete" - isEntryWithinSelection = selection_offset_start <= entry.offset >= selection_offset_start + isEntryWithinSelection = selection_offset_start <= entry.offset <= selection_offset_end entry.focused = (entry.offset == selection_offset_start) $scope.reviewPanel.nSelectedEntries++ if isEntryWithinSelection else if entry.type in [ "add-comment", "bulk-actions" ] and selection