aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index a227c5c47..2e1467e32 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5787,14 +5787,14 @@ Sci::Position Editor::GetStyledText(char *buffer, Sci::Position cpMin, Sci::Posi
Sci::Position iPlace = 0;
for (Sci::Position iChar = cpMin; iChar < cpMax; iChar++) {
buffer[iPlace++] = pdoc->CharAt(iChar);
- buffer[iPlace++] = pdoc->StyleAt(iChar);
+ buffer[iPlace++] = pdoc->StyleAtNoExcept(iChar);
}
buffer[iPlace] = '\0';
buffer[iPlace + 1] = '\0';
return iPlace;
}
-Sci::Position Editor::GetTextRange(char *buffer, Sci::Position cpMin, Sci::Position cpMax) const noexcept {
+Sci::Position Editor::GetTextRange(char *buffer, Sci::Position cpMin, Sci::Position cpMax) const {
const Sci::Position cpEnd = (cpMax == -1) ? pdoc->Length() : cpMax;
PLATFORM_ASSERT(cpEnd <= pdoc->Length());
const Sci::Position len = cpEnd - cpMin; // No -1 as cpMin and cpMax are referring to inter character positions