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();