IDEA-138916 diff: fix selected file index

This commit is contained in:
Aleksey Pivovarov
2015-04-08 11:39:25 +03:00
parent 55620c2463
commit 6ebd2d3d88
@@ -212,8 +212,8 @@ public class DirectoryHistoryDialog extends HistoryDialog<DirectoryHistoryDialog
int index = 0;
List<Change> changes = new ArrayList<Change>();
for (DirectoryChange change : iterFileChanges()) {
changes.add(change);
if (selectedSet.contains(change)) index = changes.size();
changes.add(change);
}
ShowDiffAction.showDiffForChange(myProject, changes, index, new ShowDiffContext(DiffDialogHints.FRAME));