mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-138916 diff: fix selected file index
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user