Hi,

I've been having a problem with scintilla.

If you open up a read-only document, and then attempt to cut some text out
of it, nothing happens.
If you try to paste, or just type text in, it correctly fires off the
SCN_MODIFYATTEMPTRO notification

My quick and dirty solution was to change the Document's CheckReadOnly()
method to public, and then add this line in at the start of the
Editor::Cut() method:

pdoc->CheckReadOnly();

That fixes the problem (whether it's in keeping with scintilla's design I'm
not sure); if you could include something similar in the next release of
Scintilla that'd be great.

Cheers
Chris

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to