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

Method InsertLine

scintilla/src/ContractionState.cxx:95–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void ContractionState::InsertLine(int lineDoc) {
96 if (OneToOne()) {
97 linesInDocument++;
98 } else {
99 visible->InsertSpace(lineDoc, 1);
100 visible->SetValueAt(lineDoc, 1);
101 expanded->InsertSpace(lineDoc, 1);
102 expanded->SetValueAt(lineDoc, 1);
103 heights->InsertSpace(lineDoc, 1);
104 heights->SetValueAt(lineDoc, 1);
105 int lineDisplay = DisplayFromDoc(lineDoc);
106 displayLines->InsertPartition(lineDoc, lineDisplay);
107 displayLines->InsertText(lineDoc, 1);
108 }
109}
110
111void ContractionState::InsertLines(int lineDoc, int lineCount) {
112 for (int l = 0; l < lineCount; l++) {

Callers

nothing calls this directly

Calls 4

InsertPartitionMethod · 0.80
InsertSpaceMethod · 0.45
SetValueAtMethod · 0.45
InsertTextMethod · 0.45

Tested by

no test coverage detected