diff options
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 8453118b3..684d205e6 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7690,18 +7690,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { InvalidateStyleRedraw(); break; - case SCI_MULTIEDGEADDLINE: { - // Insert new edge in sorted order. - const int column = static_cast<int>(wParam); - vs.theMultiEdge.insert( - std::upper_bound(vs.theMultiEdge.begin(), vs.theMultiEdge.end(), column, - [](const EdgeProperties &a, const EdgeProperties &b) { - return a.column < b.column; - }), - EdgeProperties(wParam, lParam)); - InvalidateStyleRedraw(); - break; - } + case SCI_MULTIEDGEADDLINE: + vs.AddMultiEdge(wParam, lParam); + InvalidateStyleRedraw(); + break; case SCI_MULTIEDGECLEARALL: std::vector<EdgeProperties>().swap(vs.theMultiEdge); // Free vector and memory, C++03 compatible |