mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
duplicate files if tabs count == 1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user