diff options
author | Neil <nyamatongwe@gmail.com> | 2025-02-01 14:43:22 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-02-01 14:43:22 +1100 |
commit | f54fd2019dd648b29a80ec7429833ab546d3a428 (patch) | |
tree | 231bebba7db25fccf798340bdd908f28fd504c26 /src/Selection.h | |
parent | db6332fa9933244c45c44063afbdcccb462cfc03 (diff) | |
download | scintilla-mirror-f54fd2019dd648b29a80ec7429833ab546d3a428.tar.gz |
Serialize selection type and ranges with SCI_GETSELECTIONSERIALIZED and
SCI_SETSELECTIONSERIALIZED.
Diffstat (limited to 'src/Selection.h')
-rw-r--r-- | src/Selection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Selection.h b/src/Selection.h index 68e7a4e54..57de92a57 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -148,6 +148,7 @@ struct SelectionRange { } void Swap() noexcept; bool Trim(SelectionRange range) noexcept; + void Truncate(Sci::Position length) noexcept; // If range is all virtual collapse to start of virtual space void MinimizeVirtualSpace() noexcept; std::string ToString() const; @@ -216,6 +217,7 @@ public: return ranges; } void SetRanges(const Ranges &rangesToSet); + void Truncate(Sci::Position length) noexcept; std::string ToString() const; }; |