From 76327652b5dc97c60c8b4c9df5ce094974fcf957 Mon Sep 17 00:00:00 2001 From: irengrig Date: Tue, 17 Aug 2010 16:09:17 +0400 Subject: [PATCH] VCS: small diff chain navigation issue --- .../openapi/vcs/changes/actions/ChangeDiffRequest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/ChangeDiffRequest.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/ChangeDiffRequest.java index 1730c0d33999..c441956a1349 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/ChangeDiffRequest.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/ChangeDiffRequest.java @@ -119,6 +119,10 @@ public class ChangeDiffRequest implements ChangeRequestChain { } if (DiffPresentationReturnValue.removeFromList.equals(returnValue)) { mySteps.remove(nextIdx); + if (moveDirection.direction() < 0) { + // our position moves to head + myIndex += moveDirection.direction(); + } continue; } final DiffRequest request = result.getRequest();