File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,9 @@ static ASResult GetPostfixCompletionExpr()
202202 if ( ! ASContext . GetLanguageContext ( language ) . IsFileValid || ! TemplateUtils . GetHasTemplates ( language ) ) return null ;
203203 var sci = doc . SciControl ;
204204 var currentLine = sci . CurrentLine ;
205- var positionFromLine = sci . PositionFromLine ( currentLine ) ;
205+ var positionFromLine = sci . LineIndentPosition ( currentLine ) ;
206206 var position = - 1 ;
207- var characters = ScintillaControl . Configuration . GetLanguage ( sci . ConfigurationLanguage ) . characterclass . Characters ;
207+ var characters = ScintillaControl . Configuration . GetLanguage ( language ) . characterclass . Characters ;
208208 for ( var i = sci . CurrentPos ; i > positionFromLine ; i -- )
209209 {
210210 var c = ( char ) sci . CharAt ( i ) ;
@@ -217,7 +217,7 @@ static ASResult GetPostfixCompletionExpr()
217217 }
218218 if ( position == - 1 ) return null ;
219219 position -= positionFromLine ;
220- var line = sci . GetLine ( currentLine ) ;
220+ var line = sci . GetLine ( currentLine ) . Trim ( ) ;
221221 line = line . Remove ( position ) ;
222222 line = line . Insert ( position , ";" ) ;
223223 return Reflector . ASGenerator . GetStatementReturnType ( sci , line , positionFromLine ) ;
You can’t perform that action at this time.
0 commit comments