duplicate files if tabs count == 1

This commit is contained in:
Konstantin Bulenkov
2011-12-07 14:10:26 +01:00
parent 5f62ca7136
commit 86dfe2b1e3
@@ -265,7 +265,7 @@ public class Switcher extends AnAction implements DumbAware {
for (int i = 0; i < len; i++) {
filesData.add(new FileInfo(recentFiles[i], null));
}
if (editors.size() == 1) {
if (editors.size() == 1 && (filesData.isEmpty() || !editors.get(0).getFirst().equals(filesData.get(0).getFirst()))) {
filesData.add(0, editors.get(0));
}
} else {