From cde12528a7e587833926354b88ad1974aedaf103 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Thu, 3 Jul 2025 08:23:26 +1000 Subject: Feature [feature-requests:#1563]. Move main range in selection serialized form. Avoid processing characters multiple times by relying on from_chars munching digit characters instead of searching for delimiters. --- src/Selection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Selection.h') 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}; } -- cgit v1.2.3