Skip to content

Commit dc7379a

Browse files
author
Philippe Elsass
committed
Fixed insertion of ; in Flash completion
1 parent c50c6b5 commit dc7379a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

External/Plugins/ASCompletion/Completion/ASComplete.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3976,8 +3976,8 @@ static internal void HandleCompletionInsert(ScintillaControl sci, int position,
39763976
ContextFeatures features = ASContext.Context.Features;
39773977

39783978
// add ; for imports
3979-
if (trigger != ';' && (expr.WordBefore == features.importKey ||
3980-
expr.WordBefore == features.importKeyAlt))
3979+
if (trigger != ';' && expr.WordBefore != null
3980+
&& (expr.WordBefore == features.importKey || expr.WordBefore == features.importKeyAlt))
39813981
{
39823982
sci.InsertText(sci.CurrentPos, ";");
39833983
sci.SetSel(sci.CurrentPos + 1, sci.CurrentPos + 1);

0 commit comments

Comments
 (0)