aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorZufu Liu <unknown>2026-03-11 09:23:34 +1100
committerZufu Liu <unknown>2026-03-11 09:23:34 +1100
commit3f1838d9feb6b8348a24b6ba4a17c2c40e3541c6 (patch)
tree937de3679ec1bb7ffda87e4ad2d82c1ed32a2b49 /src
parent08f3ce9f150063e4c0616db437ceef01e17679fe (diff)
downloadscintilla-mirror-3f1838d9feb6b8348a24b6ba4a17c2c40e3541c6.tar.gz
Bug [#2501]. Fix regression in SCI_CONVERTEOLS that may not convert whole file.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 4fb266730..ab4da0179 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1907,8 +1907,7 @@ std::string Document::TransformLineEnds(const char *s, size_t len, EndOfLine eol
void Document::ConvertLineEnds(EndOfLine eolModeSet) {
UndoGroup ug(this);
- const Sci::Position length = Length();
- for (Sci::Position pos = 0; pos < length; pos++) {
+ for (Sci::Position pos = 0; pos < LengthNoExcept(); pos++) {
const char ch = cb.CharAt(pos);
if (ch == '\r') {
if (cb.CharAt(pos + 1) == '\n') {