aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2025-02-05 20:19:18 +1100
committerNeil <nyamatongwe@gmail.com>2025-02-05 20:19:18 +1100
commitf8d3a96296b898cbca5faf1e326b3a3b0d162672 (patch)
treecb0d392233fa299687701b5a47a55855db909285 /src/Editor.cxx
parentac415de8e8457471528908f73996be78613c4620 (diff)
downloadscintilla-mirror-f8d3a96296b898cbca5faf1e326b3a3b0d162672.tar.gz
Use new SelectionSegment constructor and SelectionRange::AsSegment to simplify
code.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index a29aa08fc..77d2eb175 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -8503,8 +8503,8 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
case Message::GetLineSelStartPosition:
case Message::GetLineSelEndPosition: {
const SelectionSegment segmentLine(
- SelectionPosition(pdoc->LineStart(LineFromUPtr(wParam))),
- SelectionPosition(pdoc->LineEnd(LineFromUPtr(wParam))));
+ pdoc->LineStart(LineFromUPtr(wParam)),
+ pdoc->LineEnd(LineFromUPtr(wParam)));
for (size_t r=0; r<sel.Count(); r++) {
const SelectionSegment portion = sel.Range(r).Intersect(segmentLine);
if (portion.start.IsValid()) {