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

Method InsertSpace

scintilla/src/Decoration.cxx:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void DecorationList::InsertSpace(int position, int insertLength) {
131 const bool atEnd = position == lengthDocument;
132 lengthDocument += insertLength;
133 for (Decoration *deco=root; deco; deco = deco->next) {
134 deco->rs.InsertSpace(position, insertLength);
135 if (atEnd) {
136 deco->rs.FillRange(position, 0, insertLength);
137 }
138 }
139}
140
141void DecorationList::DeleteRange(int position, int deleteLength) {
142 lengthDocument -= deleteLength;

Callers 1

CreateMethod · 0.45

Calls 1

FillRangeMethod · 0.45

Tested by

no test coverage detected