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

Function IsLastStep

scintilla/src/Editor.cxx:78–85  ·  view source on GitHub ↗

return whether this modification represents the FINAL step in a [possibly lengthy] multi-step Undo/Redo sequence */

Source from the content-addressed store, hash-verified

76 in a [possibly lengthy] multi-step Undo/Redo sequence
77*/
78static bool IsLastStep ( const DocModification &mh )
79{
80 return
81 ( mh.modificationType & ( SC_PERFORMED_UNDO | SC_PERFORMED_REDO ) ) != 0
82 && ( mh.modificationType & SC_MULTISTEPUNDOREDO ) != 0
83 && ( mh.modificationType & SC_LASTSTEPINUNDOREDO ) != 0
84 && ( mh.modificationType & SC_MULTILINEUNDOREDO ) != 0;
85}
86
87Caret::Caret() :
88 active ( false ), on ( false ), period ( 500 ) {}

Callers 1

NotifyModifiedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected