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

Method Clear

scintilla/src/Selection.cxx:350–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350void Selection::Clear() {
351 ranges.clear();
352 ranges.push_back(SelectionRange());
353 mainRange = ranges.size() - 1;
354 selType = selStream;
355 moveExtends = false;
356 ranges[mainRange].Reset();
357 rangeRectangular.Reset();
358}
359
360void Selection::RemoveDuplicates() {
361 for (size_t i=0; i<ranges.size()-1; i++) {

Callers

nothing calls this directly

Calls 3

SelectionRangeClass · 0.85
sizeMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected