diff options
author | Neil <nyamatongwe@gmail.com> | 2019-11-15 09:25:29 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-11-15 09:25:29 +1100 |
commit | cdad8d8b9e4830a5b97631557c10135d7b12a541 (patch) | |
tree | 107503ddd3001bb23992cad9ebfdebb05a7160db /src/Selection.h | |
parent | 2ceaae0b1f19981706806cd71a1dff695b72cc1a (diff) | |
download | scintilla-mirror-cdad8d8b9e4830a5b97631557c10135d7b12a541.tar.gz |
Feature [feature-requests:#1316] Allow target to have virtual space.
Diffstat (limited to 'src/Selection.h')
-rw-r--r-- | src/Selection.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Selection.h b/src/Selection.h index d078c043e..11a6f097a 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -72,6 +72,9 @@ struct SelectionSegment { bool Empty() const noexcept { return start == end; } + Sci::Position Length() const noexcept { + return end.Position() - start.Position(); + } void Extend(SelectionPosition p) noexcept { if (start > p) start = p; |