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

Method CheckModificationForWrap

scintilla/src/Editor.cxx:4694–4707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4692}
4693
4694void 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.
4710static inline int MovePositionForInsertion ( int position, int startInsertion, int length )

Callers

nothing calls this directly

Calls 3

MaximumFunction · 0.85
InvalidateMethod · 0.80
LineFromPositionMethod · 0.45

Tested by

no test coverage detected