mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-252549 ui: honor FORBID_TAB_SPLIT flag while closing editors
GitOrigin-RevId: 183fdfe3b2c4c3bafe85d6673a1706596baac545
This commit is contained in:
committed by
intellij-monorepo-bot
parent
71c0566a3e
commit
e0c6a1312f
+1
-1
@@ -581,7 +581,7 @@ public class EditorsSplitters extends IdePanePanel implements UISettingsListener
|
||||
for (EditorWindow window : windows) {
|
||||
LOG.assertTrue(window.getSelectedEditor() != null);
|
||||
window.closeFile(file, false, moveFocus);
|
||||
if (window.getTabCount() == 0 && nextFile != null && isProjectOpen) {
|
||||
if (window.getTabCount() == 0 && nextFile != null && isProjectOpen && !FileEditorManagerImpl.forbidSplitFor(nextFile)) {
|
||||
EditorWithProviderComposite newComposite = myManager.newEditorComposite(nextFile);
|
||||
window.setEditor(newComposite, moveFocus); // newComposite can be null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user