Menu

#1588 If the SC_MOD_INSERTCHECK notification handler sends an empty string via SCI_CHANGEINSERTION, you should not attempt to insert anything.

Committed
open
nobody
5
2026-06-18
2026-06-16
Schreiner
No

If a decision is made in an SC_MOD_INSERTCHECK notification handler to prevent the desired insertion, an empty string can be sent via SCI_CHANGEINSERTION, but no attempt should then be made to insert it. Currently, this results in an empty undo entry and thus also changes the savepoint. Therefore, it would be preferable to simply do the same as when passing insertLength = 0 to Document::InsertString.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2026-06-18
    • labels: --> scintilla, notification
    • Group: Initial --> Committed
     
  • Neil Hodgson

    Neil Hodgson - 2026-06-18

    Committed equivalent code with [54d811].

     

    Related

    Commit: [54d811]


Log in to post a comment.

Auth0 Logo