Menu

#2469 Is there a reason why MarkerSymbolDefined doesn't return MarkerSymbol?

Bug
closed-fixed
nobody
5
2025-04-02
2025-03-22
8day
No

fun int MarkerSymbolDefined=2529(int markerNumber,) is supposed to be a getter for fun void MarkerDefine=2040(int markerNumber, MarkerSymbol markerSymbol), but it returns an int instead of MarkerSymbol. Is there some kind of reason for this, or it's a bug?

Discussion

  • Neil Hodgson

    Neil Hodgson - 2025-03-22

    Its most likely just an oversight. The change set that started using enumerations in Scintilla.iface was https://sourceforge.net/p/scintilla/code/ci/576e00ec068d1925d4f4e7f02952c69691b15145/ .

    Its possible there was some concern that MarkerSymbol allows characters with SC_MARK_CHARACTER+characterValue so it doesn't match some expectations of enumerations being either lists or sets of flags.

     
  • Neil Hodgson

    Neil Hodgson - 2025-03-28
    • labels: Scintilla --> Scintilla, marker
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2025-03-28

    Committed change as [e4f3b5].

     

    Related

    Commit: [e4f3b5]

  • Neil Hodgson

    Neil Hodgson - 2025-04-02
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.