return whether this modification represents the FINAL step in a [possibly lengthy] multi-step Undo/Redo sequence */
| 76 | in a [possibly lengthy] multi-step Undo/Redo sequence |
| 77 | */ |
| 78 | static 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 | |
| 87 | Caret::Caret() : |
| 88 | active ( false ), on ( false ), period ( 500 ) {} |