[feature-requests:#1588] If the SC_MOD_INSERTCHECK notification handler sends an empty string via SCI_CHANGEINSERTION, you should not attempt to insert anything.
Status: open
Group: Initial
Created: Tue Jun 16, 2026 03:17 PM UTC by Schreiner
Last Updated: Tue Jun 16, 2026 03:17 PM UTC
Owner: nobody
Attachments:
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.
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Committed equivalent code with [54d811].
[feature-requests:#1588] If the SC_MOD_INSERTCHECK notification handler sends an empty string via SCI_CHANGEINSERTION, you should not attempt to insert anything.
Status: open
Group: Committed
Labels: scintilla notification
Created: Tue Jun 16, 2026 03:17 PM UTC by Schreiner
Last Updated: Tue Jun 16, 2026 03:17 PM UTC
Owner: nobody
Attachments: