[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TextEditor CLineInfo and _TextEditor_State seems wrong


I just noticed what might be an issue...
If you look at _TextEditor_State.class
https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.form.editor/.src/_TextEditor_State.class?ref_type=heads

Then check out CLineInfo.class
https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.form.editor/.src/CLineInfo.class?ref_type=heads

the State class looks like this...

Public _State As CLineInfo

'' Return the initial highlighting state value.
Property Read State As Short
'' Return the initial highlighting tag value.
Property Read Tag As Short

Private Function State_Read() As Short

  If _State Then
    Return _State.State
  Else
    Return 0
  Endif

End

Private Function Tag_Read() As Short

  If _State Then Return _State.Tag

End

But looking at CLineInfo.class it has neither a Tag property or State

It has GetState() method  but no Tag property.

Does it need fixing ?  ;)

Respects
BruceS

Follow-Ups:
Re: TextEditor CLineInfo and _TextEditor_State seems wrongBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>