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) {
1452
1452
// This must be run in the GUI thread
1453
1453
SwingUtilities .invokeLater (() -> {
1454
1454
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
1457
1459
// For some reason, these are needed. Revalidate says it should be
1458
1460
// automatically called when components are added or removed, but without
1459
1461
// it, the component switched to is not displayed. repaint() is needed to
You can’t perform that action at this time.
0 commit comments