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

Function MovePositionForInsertion

scintilla/src/Editor.cxx:4710–4716  ·  view source on GitHub ↗

Move a position so it is still after the same character as before the insertion.

Source from the content-addressed store, hash-verified

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 )
4711{
4712 if ( position > startInsertion ) {
4713 return position + length;
4714 }
4715 return position;
4716}
4717
4718// Move a position so it is still after the same character as before the deletion if that
4719// character is still present else after the previous surviving character.

Callers 1

NotifyModifiedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected