| 4692 | } |
| 4693 | |
| 4694 | void Editor::CheckModificationForWrap ( DocModification mh ) |
| 4695 | { |
| 4696 | if ( mh.modificationType & ( SC_MOD_INSERTTEXT | SC_MOD_DELETETEXT ) ) { |
| 4697 | llc.Invalidate ( LineLayout::llCheckTextAndStyle ); |
| 4698 | int lineDoc = pdoc->LineFromPosition ( mh.position ); |
| 4699 | int lines = Platform::Maximum ( 0, mh.linesAdded ); |
| 4700 | if ( wrapState != eWrapNone ) { |
| 4701 | NeedWrapping ( lineDoc, lineDoc + lines + 1 ); |
| 4702 | } |
| 4703 | RefreshStyleData(); |
| 4704 | // Fix up annotation heights |
| 4705 | SetAnnotationHeights ( lineDoc, lineDoc + lines + 2 ); |
| 4706 | } |
| 4707 | } |
| 4708 | |
| 4709 | // Move a position so it is still after the same character as before the insertion. |
| 4710 | static inline int MovePositionForInsertion ( int position, int startInsertion, int length ) |
nothing calls this directly
no test coverage detected