Skip to content

Commit dd0be4d

Browse files
author
slavara
committed
[AS3] Fixes a bug that occurs when you edit comments
1 parent 85452a0 commit dd0be4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PostfixCodeCompletion/PluginMain.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ static ASResult GetPostfixCompletionExpr()
201201
var language = PluginBase.CurrentProject.Language;
202202
if (!ASContext.GetLanguageContext(language).IsFileValid || !TemplateUtils.GetHasTemplates(language)) return null;
203203
var sci = doc.SciControl;
204+
if (sci.PositionIsOnComment(sci.CurrentPos)) return null;
204205
var currentLine = sci.CurrentLine;
205206
var positionFromLine = sci.LineIndentPosition(currentLine);
206207
var position = -1;

0 commit comments

Comments
 (0)