aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-10-26 13:44:13 +1100
committerNeil <nyamatongwe@gmail.com>2023-10-26 13:44:13 +1100
commit8f42bb51d6445602027d8c68d6c6f225f6536c68 (patch)
tree076c344e247f686086090738356df63b60f0056d /src/CellBuffer.h
parentfdbb5c9273a8f25f86f4113b837926f883083b23 (diff)
downloadscintilla-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.h1
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;