@@ -12,7 +12,7 @@ public partial class SharpIdeCodeEdit
1212 private Rect2I _codeCompletionScrollRect = new Rect2I ( ) ;
1313 private Vector2I _codeHintMinsize = new Vector2I ( ) ;
1414 private Vector2I ? _completionTriggerPosition ;
15- private int _codeCompletionLineOfs = 0 ;
15+ private int _codeCompletionLineOffset = 0 ;
1616 private int _codeCompletionForceItemCenter = - 1 ;
1717 private int _codeCompletionCurrentSelected = 0 ;
1818 private int _codeCompletionMinLineWidth = 0 ;
@@ -34,7 +34,7 @@ public partial class SharpIdeCodeEdit
3434
3535 int rowHeight = GetLineHeight ( ) ;
3636 int relativeY = point . Y - _codeCompletionRect . Position . Y ;
37- int lineIndex = relativeY / rowHeight + _codeCompletionLineOfs ;
37+ int lineIndex = relativeY / rowHeight + _codeCompletionLineOffset ;
3838 if ( lineIndex < 0 || lineIndex >= _codeCompletionOptions . Length ) return null ;
3939
4040 return lineIndex ;
@@ -201,7 +201,7 @@ private void DrawCompletionsPopup()
201201 _codeCompletionScrollRect . Position = _codeCompletionRect . Position + new Vector2I ( _codeCompletionRect . Size . X , 0 ) ;
202202 _codeCompletionScrollRect . Size = new Vector2I ( scrollWidth , _codeCompletionRect . Size . Y ) ;
203203
204- _codeCompletionLineOfs = Mathf . Clamp (
204+ _codeCompletionLineOffset = Mathf . Clamp (
205205 ( _codeCompletionForceItemCenter < 0 ? _codeCompletionCurrentSelected : _codeCompletionForceItemCenter ) -
206206 completionsToDisplay / 2 ,
207207 0 ,
@@ -215,7 +215,7 @@ private void DrawCompletionsPopup()
215215 new Rect2 (
216216 new Vector2 (
217217 _codeCompletionRect . Position . X ,
218- _codeCompletionRect . Position . Y + ( _codeCompletionCurrentSelected - _codeCompletionLineOfs ) * rowHeight
218+ _codeCompletionRect . Position . Y + ( _codeCompletionCurrentSelected - _codeCompletionLineOffset ) * rowHeight
219219 ) ,
220220 new Vector2 ( _codeCompletionRect . Size . X , rowHeight )
221221 )
@@ -225,7 +225,7 @@ private void DrawCompletionsPopup()
225225 string lang = OS . GetLocale ( ) ;
226226 for ( int i = 0 ; i < completionsToDisplay ; i ++ )
227227 {
228- int l = _codeCompletionLineOfs + i ;
228+ int l = _codeCompletionLineOffset + i ;
229229 if ( l < 0 || l >= availableCompletions )
230230 {
231231 GD . PushError ( $ "Invalid line index: { l } ") ;
@@ -243,10 +243,10 @@ private void DrawCompletionsPopup()
243243 _completionInlineDescriptionTextLine . AddString ( " " , font , fontSize , lang ) ;
244244 _completionInlineDescriptionTextLine . AddString ( sharpIdeCompletionItem . CompletionItem . InlineDescription , font , fontSize , lang ) ;
245245
246- float yofs = ( rowHeight - textLine . GetSize ( ) . Y ) / 2 ;
246+ float yOffset = ( rowHeight - textLine . GetSize ( ) . Y ) / 2 ;
247247 Vector2 titlePos = new Vector2 (
248248 _codeCompletionRect . Position . X ,
249- _codeCompletionRect . Position . Y + i * rowHeight + yofs
249+ _codeCompletionRect . Position . Y + i * rowHeight + yOffset
250250 ) ;
251251
252252 /* Draw completion icon if it is valid. */
@@ -318,7 +318,7 @@ private void DrawCompletionsPopup()
318318 : GetThemeColor ( ThemeStringNames . CompletionScrollColor ) ;
319319
320320 float r = ( float ) MaxLines / availableCompletions ;
321- float o = ( float ) _codeCompletionLineOfs / availableCompletions ;
321+ float o = ( float ) _codeCompletionLineOffset / availableCompletions ;
322322
323323 RenderingServer . Singleton . CanvasItemAddRect (
324324 ci ,
0 commit comments