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

Method DeleteLine

scintilla/src/ContractionState.cxx:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void ContractionState::DeleteLine(int lineDoc) {
119 if (OneToOne()) {
120 linesInDocument--;
121 } else {
122 if (GetVisible(lineDoc)) {
123 displayLines->InsertText(lineDoc, -heights->ValueAt(lineDoc));
124 }
125 displayLines->RemovePartition(lineDoc);
126 visible->DeleteRange(lineDoc, 1);
127 expanded->DeleteRange(lineDoc, 1);
128 heights->DeleteRange(lineDoc, 1);
129 }
130}
131
132void ContractionState::DeleteLines(int lineDoc, int lineCount) {
133 for (int l = 0; l < lineCount; l++) {

Callers

nothing calls this directly

Calls 4

RemovePartitionMethod · 0.80
InsertTextMethod · 0.45
ValueAtMethod · 0.45
DeleteRangeMethod · 0.45

Tested by

no test coverage detected