diff options
author | Neil <nyamatongwe@gmail.com> | 2023-10-26 13:44:13 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-10-26 13:44:13 +1100 |
commit | 8f42bb51d6445602027d8c68d6c6f225f6536c68 (patch) | |
tree | 076c344e247f686086090738356df63b60f0056d /src/CellBuffer.h | |
parent | fdbb5c9273a8f25f86f4113b837926f883083b23 (diff) | |
download | scintilla-mirror-8f42bb51d6445602027d8c68d6c6f225f6536c68.tar.gz |
Implement LineEnd method in CellBuffer as it is a basic function and only uses
CellBuffer fields.
Declare LineEnd noexcept as it should never throw and that allows methods
calling it to also be noexcept.
Call LineEndPosition to simplify Editor::LineSelectionRange.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r-- | src/CellBuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 7f0b87c4d..f0aacf8ec 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -186,6 +186,7 @@ public: Sci::Line Lines() const noexcept; void AllocateLines(Sci::Line lines); Sci::Position LineStart(Sci::Line line) const noexcept; + Sci::Position LineEnd(Sci::Line line) const noexcept; Sci::Position IndexLineStart(Sci::Line line, Scintilla::LineCharacterIndexType lineCharacterIndex) const noexcept; Sci::Line LineFromPosition(Sci::Position pos) const noexcept; Sci::Line LineFromPositionIndex(Sci::Position pos, Scintilla::LineCharacterIndexType lineCharacterIndex) const noexcept; |