diff --git a/UI/Components/EditorElement/EditorElementGoToDefinition.cs b/UI/Components/EditorElement/EditorElementGoToDefinition.cs index 4ae7733..ddc9f9f 100644 --- a/UI/Components/EditorElement/EditorElementGoToDefinition.cs +++ b/UI/Components/EditorElement/EditorElementGoToDefinition.cs @@ -46,7 +46,7 @@ private async Task GoToDefinition(MouseButtonEventArgs e) await Task.Delay(100); - if (Program.MainWindow.TryLoadSourceFile(file, out var newEditor, true, false, true) && + if (Program.MainWindow.TryLoadSourceFile(file, out var newEditor, false, true) && newEditor != null) { newEditor.editor.TextArea.Caret.Offset = sm.Index;