Skip to content

Commit bc7bf73

Browse files
committed
Added missing logic to reset current file name when the source text was loaded from a text source rather than file.
1 parent 87aa855 commit bc7bf73

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

GunWin/VisualAnalyzer.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,6 @@ public bool UseHeuristicSyntaxHighlighting
191191
/// <summary>
192192
/// Parses the source code.
193193
/// </summary>
194-
/// <exception cref="T:Org.Edgerunner.ANTLR4.Tools.Testing.Exceptions.GrammarException">
195-
/// No parser found for the current grammar
196-
/// OR
197-
/// Selected parser rule does not exist for the current grammar.
198-
/// </exception>
199-
/// <exception cref="T:System.ArgumentNullException">Selected parser rule is null or empty.</exception>
200194
public void ParseSource()
201195
{
202196
if (_Grammar == null)
@@ -345,6 +339,7 @@ private void GrammarAssemblyChanged(object sender, GrammarReference e)
345339
public void SetSourceCode(string code)
346340
{
347341
CodeEditor.Text = code;
342+
_CurrentSourceFile = null;
348343
}
349344

350345
private void GraphingFinished(object sender, GraphingResult e)

0 commit comments

Comments
 (0)