Skip to content

Commit

Permalink
Fixed run-time error. fixes #77 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
SlavaRa committed Jan 25, 2018
1 parent 8940f8b commit a6dd96f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PostfixCodeCompletion/Completion/Complete.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public override bool UpdateCompletionList(ASResult expr, IList<ICompletionListIt
{
var result = base.UpdateCompletionList(expr, options);
if (result) return true;
if (expr == null || expr.IsNull() || expr.Context == null || completionModeHandler == null) return false;
if (expr == null || expr.IsNull() || expr.IsPackage || expr.Context == null || completionModeHandler == null) return false;
var sci = PluginBase.MainForm.CurrentDocument.SciControl;
if (sci.CharAt(expr.Context.Position) != '.') return false;
var hc = new HaxeComplete(sci, expr, false, completionModeHandler, HaxeCompilerService.Type);
Expand Down

0 comments on commit a6dd96f

Please sign in to comment.