diff options
Diffstat (limited to 'plugins/git4idea/src/git4idea/index/actions/GitStageDiffAction.kt')
-rw-r--r-- | plugins/git4idea/src/git4idea/index/actions/GitStageDiffAction.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/git4idea/src/git4idea/index/actions/GitStageDiffAction.kt b/plugins/git4idea/src/git4idea/index/actions/GitStageDiffAction.kt index e1042951e322..b1a775295b04 100644 --- a/plugins/git4idea/src/git4idea/index/actions/GitStageDiffAction.kt +++ b/plugins/git4idea/src/git4idea/index/actions/GitStageDiffAction.kt @@ -23,7 +23,7 @@ class GitStageDiffAction : AnActionExtensionProvider { override fun actionPerformed(e: AnActionEvent) { val producers = e.getRequiredData(GitStageDataKeys.GIT_STAGE_TREE).statusNodesListSelection(true) .map { createTwoSidesDiffRequestProducer(e.project!!, it) } - DiffManager.getInstance().showDiff(e.project, ChangeDiffRequestChain(producers.list, producers.selectedIndex), DiffDialogHints.DEFAULT) + DiffManager.getInstance().showDiff(e.project, ChangeDiffRequestChain(producers), DiffDialogHints.DEFAULT) } companion object { @@ -49,6 +49,6 @@ class GitStageThreeSideDiffAction : DumbAwareAction() { override fun actionPerformed(e: AnActionEvent) { val producers = e.getRequiredData(GitStageDataKeys.GIT_STAGE_TREE).statusNodesListSelection(false) .map { createThreeSidesDiffRequestProducer(e.project!!, it) } - DiffManager.getInstance().showDiff(e.project, ChangeDiffRequestChain(producers.list, producers.selectedIndex), DiffDialogHints.DEFAULT) + DiffManager.getInstance().showDiff(e.project, ChangeDiffRequestChain(producers), DiffDialogHints.DEFAULT) } } |