MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / SetSelections

Method SetSelections

src/decorators/BetterMultiSelection.cpp:194–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void BetterMultiSelection::SetSelections(const QVector<Selection> &selections) {
195 for (auto i = 0; i < selections.size(); ++i) {
196 if (i == 0)
197 editor->setSelection(selections[i].caret, selections[i].anchor);
198 else
199 editor->addSelection(selections[i].caret, selections[i].anchor);
200 }
201}
202
203void BetterMultiSelection::EditSelections(std::function<void(Selection &selection)> edit) {
204 auto selections = GetSelections();

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected