This repository was archived by the owner on Sep 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ public EditorElement(string filePath)
9191
9292 editor . PreviewMouseWheel += PrevMouseWheel ;
9393 editor . MouseDown += editor_MouseDown ;
94+ editor . Loaded += editor_Loaded ;
95+
9496 editor . TextArea . TextEntered += TextArea_TextEntered ;
9597 editor . TextArea . TextEntering += TextArea_TextEntering ;
9698 var fInfo = new FileInfo ( filePath ) ;
@@ -137,7 +139,6 @@ public EditorElement(string filePath)
137139
138140 colorizeSelection = new ColorizeSelection ( ) ;
139141 editor . TextArea . TextView . LineTransformers . Add ( colorizeSelection ) ;
140- ParseIncludes ( null , null ) ;
141142
142143 LoadAutoCompletes ( ) ;
143144
@@ -174,6 +175,11 @@ public EditorElement(string filePath)
174175 CompileBox . IsChecked = filePath . EndsWith ( ".sp" ) ;
175176 }
176177
178+ private void editor_Loaded ( object sender , RoutedEventArgs e )
179+ {
180+ ParseIncludes ( sender , e ) ;
181+ }
182+
177183 public string FullFilePath
178184 {
179185 get => _FullFilePath ;
You can’t perform that action at this time.
0 commit comments