MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / CheckReadOnly

Method CheckReadOnly

scintilla/src/Document.cxx:788–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786}
787
788void Document::CheckReadOnly() {
789 if (cb.IsReadOnly() && enteredReadOnlyCount == 0) {
790 enteredReadOnlyCount++;
791 NotifyModifyAttempt();
792 enteredReadOnlyCount--;
793 }
794}
795
796// Document only modified by gateways DeleteChars, InsertString, Undo, Redo, and SetStyleAt.
797// SetStyleAt does not change the persistent state of a document

Callers 1

CutMethod · 0.80

Calls 1

IsReadOnlyMethod · 0.45

Tested by

no test coverage detected