fix(gui): back button was defect since #653
This commit is contained in:
@@ -117,8 +117,8 @@ public class TabbedPane extends JTabbedPane {
|
||||
@Nullable
|
||||
private JumpPosition getCurrentPosition() {
|
||||
ContentPanel selectedCodePanel = getSelectedCodePanel();
|
||||
if (selectedCodePanel instanceof CodeContentPanel) {
|
||||
return ((CodeContentPanel) selectedCodePanel).getCodeArea().getCurrentPosition();
|
||||
if (selectedCodePanel instanceof AbstractCodeContentPanel) {
|
||||
return ((AbstractCodeContentPanel) selectedCodePanel).getCodeArea().getCurrentPosition();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user