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

Function CanDeferToLastStep

scintilla/src/Editor.cxx:54–66  ·  view source on GitHub ↗

return whether this modification represents an operation that may reasonably be deferred (not done now OR [possibly] at all) */

Source from the content-addressed store, hash-verified

52 may reasonably be deferred (not done now OR [possibly] at all)
53*/
54static bool CanDeferToLastStep ( const DocModification &mh )
55{
56 if ( mh.modificationType & ( SC_MOD_BEFOREINSERT | SC_MOD_BEFOREDELETE ) ) {
57 return true; // CAN skip
58 }
59 if ( ! ( mh.modificationType & ( SC_PERFORMED_UNDO | SC_PERFORMED_REDO ) ) ) {
60 return false; // MUST do
61 }
62 if ( mh.modificationType & SC_MULTISTEPUNDOREDO ) {
63 return true; // CAN skip
64 }
65 return false; // PRESUMABLY must do
66}
67
68static bool CanEliminate ( const DocModification &mh )
69{

Callers 1

NotifyModifiedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected