File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1452,8 +1452,10 @@ public void selectTab(final int index) {
14521452 // This must be run in the GUI thread
14531453 SwingUtilities .invokeLater (() -> {
14541454 codePanel .removeAll ();
1455- codePanel .add (tabs .get (index ), BorderLayout .CENTER );
1456- tabs .get (index ).requestFocusInWindow (); // get the caret blinking
1455+ EditorTab selectedTab = tabs .get (index );
1456+ codePanel .add (selectedTab , BorderLayout .CENTER );
1457+ selectedTab .applyPreferences ();
1458+ selectedTab .requestFocusInWindow (); // get the caret blinking
14571459 // For some reason, these are needed. Revalidate says it should be
14581460 // automatically called when components are added or removed, but without
14591461 // it, the component switched to is not displayed. repaint() is needed to
You can’t perform that action at this time.
0 commit comments