aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.h
diff options
context:
space:
mode:
authorZufu Liu <unknown>2025-07-03 08:23:26 +1000
committerZufu Liu <unknown>2025-07-03 08:23:26 +1000
commitcde12528a7e587833926354b88ad1974aedaf103 (patch)
treea6b75dc168997106346dafdd8a424d44949c29f1 /src/Selection.h
parent181b13c2eed7499d192d0b85c7269dc7ab71336b (diff)
downloadscintilla-mirror-cde12528a7e587833926354b88ad1974aedaf103.tar.gz
Feature [feature-requests:#1563]. Move main range in selection serialized form.master
Avoid processing characters multiple times by relying on from_chars munching digit characters instead of searching for delimiters.
Diffstat (limited to 'src/Selection.h')
-rw-r--r--src/Selection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Selection.h b/src/Selection.h
index 6779ee7ce..1a57d2e78 100644
--- a/src/Selection.h
+++ b/src/Selection.h
@@ -20,7 +20,7 @@ public:
if (virtualSpace < 0)
virtualSpace = 0;
}
- explicit SelectionPosition(std::string_view sv);
+ explicit SelectionPosition(std::string_view &sv);
void Reset() noexcept {
position = 0;
virtualSpace = 0;
@@ -121,7 +121,7 @@ struct SelectionRange {
}
constexpr SelectionRange(Sci::Position caret_, Sci::Position anchor_) noexcept : caret(caret_), anchor(anchor_) {
}
- explicit SelectionRange(std::string_view sv);
+ explicit SelectionRange(std::string_view &sv);
SelectionSegment AsSegment() const noexcept {
return {caret, anchor};
}